SpreadsheetApp Active Sheet

Other topics

Remarks:

Method: getActive()

Return Type: Spreadsheet

getActive() - Get active spreadsheet

This returns the currently active spreadsheet, or null if there is none.

var currentSheet = SpreadsheetApp.getActive();
var url = currentSheet.getUrl();
Logger.log( url );

Contributors

Topic Id: 5861

Example Ids: 20627

This site is not affiliated with any of the contributors.