getActiveSheet

returns the sheet that is currently active

object getActiveSheet();

Returns

objectan object with the name and id attributes of the active sheet

Example

spreadsheet.getActiveSheet();
// ->  {name: "sheet", id: "u1614675531904"}

Change log

added in v4.1

Back to top