-
-
Notifications
You must be signed in to change notification settings - Fork 39
getActiveCell
Julian Halliwell edited this page Apr 15, 2025
·
1 revision
Returns a struct containing the row and column of the currently active cell.
getActiveCell( workbook );
-
workbook
spreadsheet object
Chainable? Yes but ends the chain.
The method returns a struct with the keys row
and column
.
spreadsheet = New spreadsheet();
workbook = spreadsheet.newXlsx();
spreadsheet
.addRow( workbook, [ "a", "b" ] )
.setActiveCell( workbook, 1, 2 );
result = spreadsheet.getActiveCell( workbook );// returns { row: 1, column: 2 }