difference between getActive() and getActiveSpreadsheet()

Asked 2 years ago, Updated 2 years ago, 127 views

I am currently studying to make various things using Google Apps script.I'm trying to manipulate the sheet with a spreadsheet, but I have a question after seeing the reference.
In the SpreadsheetApp class, the getActive() and getActiveSpreadsheet() methods are verbatim, so you cannot tell the difference between them.Are there different behaviors under certain conditions?

google-apps-script google-spreadsheet

2022-09-30 16:29

1 Answers

There should be no difference in memory.It's just an alias.


2022-09-30 16:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.