I am trying to add a menu in the onOpen function. But it is not firing. Below is my code.
function onOpen() {
var sheet = SpreadsheetApp.getActiveSheet();
var options = [{name:"Send", functionName:"sendAll"}];
sheet.addMenu("SMS", options);
}
When I try to run the function in debug, it shows the error.
Can not find addMenu in the object sheet.
How to fix this.