In my Google script I want to extend a range of columns and make their column widths identical to an existing set of columns the manual Sheets command to paste only columns widths works fine but the script:
copyTo(columnRange,SpreadsheetApp.CopyPasteType.PASTE_COLUMN_WIDTHS)
does not work. It copies values and formats instead of just column widths.
Does anyone have a workaround for this?