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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.