Matterway
    Preparing search index...

    Function addColumn

    • Adds a new column to the worksheet at the specified index.

      Parameters

      • worksheet: Worksheet

        The ExcelJS worksheet.

      • name: string

        The header name for the new column.

      • index: number

        The 1-based column index where the new column should be inserted.

      Returns void

      addColumn(worksheet, 'Name', 3);