Update to improve compatibility with recorded macros
Update to improve compatibility with recorded macros

Macros usually use `var spreadsheet = SpreadsheetApp.getActive();` at the start and by activating the sheet easier to drop in recorded macro functions to `performSets{}`
Max-Makhrov/GoogleSheets