Skrypt aplikacji Google GetSheetByName
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Expenses");
SubZ390
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Expenses");
// The code below logs the index of a sheet named "Expenses"
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Expenses")
if (sheet != null) {
Logger.log(sheet.getIndex())
}
var sheet = SpreadsheetApp.getActive().getSheetByName('Local')