apps script set active sheet and open to active sheet code example Example: get active sheet google script SpreadsheetApp.getActiveSheet()