Create a submenu under Add ons

function onOpen()
{
  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

Popular posts from this blog

Popup message box

Create a side bar