getSheetById()

437 views
Skip to first unread message

sben...@bbchs.org

unread,
Apr 10, 2021, 5:01:49 PM4/10/21
to Google Apps Script Community
Does anyone know if they ever plan on adding this?  I know we can getSheetId(), but I would then like to have that functionality so that no conflicts would happen if someone has named a sheet something unexpected.

dimud...@gmail.com

unread,
Apr 10, 2021, 5:28:28 PM4/10/21
to Google Apps Script Community
Don't know if they will. But you can always fetch an array of sheets and use the find()method of the Array class to get the sheet by id.

sben...@bbchs.org

unread,
Apr 10, 2021, 5:44:18 PM4/10/21
to Google Apps Script Community
Thanks for the tip.  
Reply all
Reply to author
Forward
0 new messages