-
-
Notifications
You must be signed in to change notification settings - Fork 40
shiftRows
Julian Halliwell edited this page Sep 20, 2021
·
6 revisions
Shifts one or more rows up or down. The contents of the shifted row or rows, including empty cells, overwrites data in the row or rows to which it is shifted.
shiftRows( workbook, start [, end [, offset ] ] )
-
workbookspreadsheet object -
startnumeric: The number of the first, or only, row to shift.
-
endnumeric: The number of the last row to shift. If omitted the function shifts a single row. -
offsetnumeric default=1: The positive (down) or negative (up) number of rows to shift by. If omitted the function shifts the row down by one.
Chainable? Yes.
data = QueryNew( "First,Last", "VarChar,VarChar", [ [ "Susi","Sorglos" ], [ "Frumpo","McNugget" ] ] );
spreadsheet = New spreadsheet();
workbook = spreadsheet.workbookFromQuery( data );
spreadsheet.shiftRows( workbook, 1, 1, 1 );