How to I check if myname
sheet exist in google scripts, to avoid errors using insertSheet
on an existing name?
Following does not work
var ss = SpreadsheetApp.getActiveSpreadsheet();
var itt = ss.getSheetByName('_EmailList');
if (! (itt.hasNext())){
ss.insertSheet('_EmailList');}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…