Create a menu
Code:
function makeMenu()
{
DocumentApp.getUi().createMenu("Top Menu Text").addItem("Sub menu function is toastMe", "toastMe").addToUi();
}
To make it load on startup, change function name to onOpen()
function makeMenu()
{
DocumentApp.getUi().createMenu("Top Menu Text").addItem("Sub menu function is toastMe", "toastMe").addToUi();
}
To make it load on startup, change function name to onOpen()
Comments
Post a Comment