-
-
Notifications
You must be signed in to change notification settings - Fork 36
addFreezePane
Julian Halliwell edited this page Sep 20, 2021
·
5 revisions
Locks or freezes rows or columns so that they remain visible when scrolling.
addFreezePane( workbook, freezeColumn, freezeRow[, leftmostColumn [, topRow ] ] )
-
workbook
spreadsheet object -
freezeColumn
numeric: the number of the column to lock/freeze -
freezeRow
numeric: the number of the row to lock/freeze
-
leftmostColumn
numeric: left column to be visible in the right pane -
topRow
numeric: top row to be visible in the bottom pane
Chainable? Yes.
Use 0 for freezeColumn
or freezeRow
if you don't want a column or row to be locked.
data = QueryNew( "First,Last","VarChar,VarChar",[ [ "Susi","Sorglos" ],[ "Frumpo","McNugget" ] ] );
spreadsheet = New spreadsheet();
workbook = spreadsheet.workbookFromQuery( data );
//Freezes the header row only
spreadsheet.addFreezePane( workbook,0,1 );