Matterway
    Preparing search index...

    Function duplicateColumn

    • Duplicates a column by inserting a new column at the target position with the same values.

      Parameters

      • ws: Worksheet

        The worksheet containing the columns.

      • sourceColNumber: number

        The number of the column to copy from (1-based index).

      • targetColNumber: number

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

      Returns void

      duplicateColumn(worksheet, 2, 5);