getActiveSheet
getActiveSheet is a method of the Spreadsheet class in Google Apps Script. It returns the currently active sheet (the sheet that is currently selected) within the active spreadsheet. The method is commonly used in bound scripts to access or manipulate the sheet that the user has open at runtime.
Return value and behavior: getActiveSheet returns a Sheet object representing the active sheet. In most cases
Usage pattern: A typical usage pattern is to obtain the active spreadsheet and then its active sheet,
Considerations: getActiveSheet is most reliable in scripts bound to a specific spreadsheet and when the user