Duplicate worksheet with copy placed next to original
问题 I have a script to duplicate a sheet in the same spreadsheet: function duplicateSheet() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var devis = ss.getActiveSheet(); devis.copyTo(ss).setName('CopyDevis'); It works fine, however the copy tab is created at the very right of the spreadsheet. It is a bit of an issue because i have many tabs and i would have to go to the far right then move it back to the left. I want the copy to created right next to the original. I'm aware of the