My currently created menu is made as follows:
function onOpen(e) {
SpreadsheetApp.getUi()
.createMenu('Script Menu')
.addItem('ClimaParaTestes', 'ClimaParaTestes')
.addItem('JogosParaClimaParaTestes', 'JogosParaClimaParaTestes')
.addToUi();
}
All functions in the file are:
function ClimaParaTestes()
function JogosParaClimaParaTestes()
function EnviarClimasParaSquads()
function ApagarHistóricoDoClima()
function DeleTeste()
I would like to know if there is any way for the menu to automatically update itself and add new functions without needing to create an addItem
for each function.
Some way to read the file and find all existing functions and add to the menu.
I sometimes forget to add new functions and other people who have access to the spreadsheet don't know how to use Google App Script to run there.
Note: Menu items can have the same name as the function.