Create a submenu under Add ons
function onOpen()
{
SpreadsheetApp.getUi().createAddonMenu().addItem("Show side bar", "functionToShowSideBar").addToUi();
}
{
SpreadsheetApp.getUi().createAddonMenu().addItem("Show side bar", "functionToShowSideBar").addToUi();
}
You use DocumentApp.getUi() if using google docs.
Use SpreadsheetApp.getUi() if using google sheets.
Comments
Post a Comment