AfterSheetChange

fires after the currently active sheet is changed

void AfterSheetChange(object sheet){ ... };

Parameters

sheetobjectthe object of the newly active sheet

Example

spreadsheet.events.on("afterSheetChange", function(sheet) {
    console.log("The newly active sheet is ", sheet.name);
});

Details

The sheet object contains the following parameters:

  • name - (string) the name of the newly active sheet
  • id - (string) the id of the newly active sheet
Change log

added in v4.1

Back to top