var ss = SpreadsheetApp.getActiveSpreadsheet(); ss.insertSheet('My New Sheet', 0);; // .insert(SheetsheetName, atIndex);