Activate a sheet

Source code

function activateSheet(){
  var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
  var sh = spreadsheet.getActiveSheet();
  sh.activate();
}

Format

SheetObject.activate();

Response

None

What does it work for?

Activate or select or view a targeted sheet.

How to get a sheet object?

Please refer a following post;

Get a sheet object by name

1 thought on “Activate a sheet”

Leave a Comment