-
-
Notifications
You must be signed in to change notification settings - Fork 40
formatRows
Julian Halliwell edited this page Apr 3, 2020
·
9 revisions
Formats/styles the contents of multiple rows.
formatRows( workbook, format, range )
-
workbookspreadsheet object -
formatstruct: See Formatting options for details. -
rangestring: a comma-delimited list of ranges.Each value can be either a single number or a range of numbers with a hyphen, e.g. "1,2-5"
-
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 tofalse, 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).
data = QueryNew( "First,Last","VarChar,VarChar",[ [ "Susi","Sorglos" ],[ "Frumpo","McNugget" ] ] );
spreadsheet = New spreadsheet();
workbook = spreadsheet.workbookFromQuery( data );
spreadsheet.formatRows( workbook,{bold="true"},"1-2" );