google apps script getsheetbyname

Solutions on MaxInterview for google apps script getsheetbyname by the best coders in the world

showing results for - "google apps script getsheetbyname"
Silvia
30 Aug 2018
1// The code below logs the index of a sheet named "Expenses"
2const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Expenses")
3if (sheet != null) {
4  Logger.log(sheet.getIndex())
5}
Eleonora
02 Apr 2019
1var sheet = SpreadsheetApp.getActive().getSheetByName('Local')
Joshua
24 Jan 2021
1var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Expenses");