-
-
Notifications
You must be signed in to change notification settings - Fork 39
shiftColumns
Julian Halliwell edited this page Apr 8, 2017
·
8 revisions
Shifts one or more columns to the left or right.
shiftColumns( workbook, start [, end [, offset ] ] )
-
workbook
spreadsheet object -
start
numeric: The number of the first, or only, column to shift.
-
end
numeric: The number of the last column to shift. If omitted the function shifts a single column. -
offset
numeric default=1: The positive (right) or negative (left) number of columns to shift by. If omitted the function shifts the column right by one.
spreadsheet = New spreadsheet();
workbook = spreadsheet.new();
spreadsheet.addColumn( workbook,"a,b" );
spreadsheet.addColumn( workbook, "c,d" );
spreadsheet.shiftColumns( workbook, 1, 1, 1 );