I have no background in programming but I am trying to come up with a Script on Google Sheets to remove the first 3 columns in my Workbook except the "Main Menu". I have 61 tabs so I didn't want to individually remove them. So, the following is what I managed to come up with from doing the googling. I kept seeing the error "Cannot find method deleteColumns()." Any help would be much appreciated.
function QuickDelete() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sss = ss.getSheets();
for (i = 0; i < sheets.length; i++) {
switch(sss[i].getSheetName()) {
case "Main Menu":
break;
default:
ss.deleteColumns(sss[i]);
}
}
}