metadata-gd/Blue Print - metadata.js
/**
 * Adds custom menu to the active spreadsheet whenever the
 * spreadsheet is opened.
 */
Adds custom menu to the active spreadsheet whenever the
spreadsheet is opened.
Adds custom menu to the active spreadsheet whenever the spreadsheet is opened .
function onOpen() {
    var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
    var entries = [{
        name : "Create XML",
        functionName : "createXML"
    }];
    spreadsheet.addMenu("Scripts", entries);
}
function onOpen ( ) { var spreadsheet = SpreadsheetApp . getActiveSpreadsheet ( ) ; var entries = [ { name : "Create XML" , functionName : "createXML" } ] ; spreadsheet . addMenu ( "Scripts" , entries ) ; }
Adds custom menu to the active spreadsheet whenever the
 spreadsheet is opened.
Adds custom menu to the active spreadsheet whenever the spreadsheet is opened .