set active sheet in google sheets code example Example: get active sheet google script SpreadsheetApp.getActiveSheet()