🟥app menu
⬆️ 需要: app (app.ui)
function onOpen() {
// ♥ 自製工具
app.ui.createMenu('🧰 工具箱')
.addItem('✅ 原始報表 ➠ 生成資料', 'main')
.addItem('❗ 刪除生成資料', 'deleteSheets')
.addToUi();
}
function deleteSheets(){
app.classes.concat(['各班平均', '班排前3', '校排前30']).forEach(name => {
app.deleteSheetByName(name);
})
}
Last updated
Was this helpful?