What am I doing wrong with this?
Error code TypeError: Cannot find function activate in object true. (Line 12, file "Code")
Look at past Stack Overflow examples, nothing seems to work. The only way I can get this to run is if I ref the sheet as a number.
var ss = SpreadsheetApp.getActiveSpreadsheet(); //changed sheet to ss added Spread to Sheet
var sheet=ss.getActiveSheet().getSheetName()=="LN CX 2019"
sheet.activate()
I would like to run a script on a specific sheet in a workbook. I cannot lock the tabs so using sheet reference [0] may be a problem in the future.