AfterSheetRename

fires after a sheet is renamed

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

Parameters

sheetobjectthe object of a sheet

Example

spreadsheet.events.on("afterSheetRename", function(sheet) {
    console.log("The sheet is renamed to", sheet.name );
});

Details

The sheet object contains the following parameters:

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

added in v4.1

Back to top