You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julian Halliwell edited this page Mar 3, 2023
·
10 revisions
Formats/styles the contents of multiple columns.
formatColumns( workbook, format, range[, overwriteCurrentStyle [, cellStyle ] ] )
Required arguments
workbookspreadsheet object
formatstruct OR cellStyle object: See Formatting options for details. Optional if cellStyle supplied.
rangestring: a comma-delimited list of ranges. Each value can be either a single number, a range of numbers with a hyphen, e.g. "1,2-5", or an open-ended range, e.g. "2-" (meaning all starting from 2).
Optional arguments
overwriteCurrentStyleboolean default=true: for performance/efficiency reasons all of the existing styles will be completely overwritten when using this method. To preserve existing formatting properties other than the ones being changed, set this flag to false, but please note that this should only be used when formatting a limited number of cells (you may run into errors if applied to too many cells).