“Script Google Apps GetSheetByName” Réponses codées

Google App Script GetSheetByName

var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Expenses");
SubZ390

Script Google Apps GetSheetByName

// The code below logs the index of a sheet named "Expenses"
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Expenses")
if (sheet != null) {
  Logger.log(sheet.getIndex())
}
SubZ390

Google App Script GetSheetByName

var sheet = SpreadsheetApp.getActive().getSheetByName('Local')
SubZ390

Réponses similaires à “Script Google Apps GetSheetByName”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code