onSheetRename

fires when a sheet is renamed

void onSheetRename(string name,string newName);
namestringthe old name of the sheet
newNamestringthe new name for the sheet

Example

$$("ssheet").attachEvent("onSheetRename", function(name, newName){
    // some code here
    console.log("Sheet " + name + " was renamed to " + newName);
});

See also
Back to top