As it says in the title, I want to trigger a script to run when the user adds a new sheet or tab to the spreadsheet. I also include using the "Duplicate" function. How do I achieve this?
Google Sheets – Run Script When a Sheet is Added
google sheetsgoogle-apps-script
Related Topic
- Google-sheets – How to trigger a function when switching sheets within a spreadsheet
- Google-sheets – Google App Script – changeType “REMOVE_GRID”
- Google-sheets – Run a Script When Tab Programmatically added to a Google Spreadsheet
- Google-sheets – How to run a different script on multiple Google Sheet tabs
- Google-sheets – Run Google Sheet Script Running for 1st entry only
Best Answer
Use the following function, coupled with a trigger "From Spreadsheet > On Change"