get spread sheet by url code example Example: get active sheet google script SpreadsheetApp.getActiveSheet()