i want to copy one sheet in a Google Spreadsheet "x" times in the same spreadsheet. I want them to have a simple number that counts up (first sheet is "1", second needs to be, "2", ... The "x" is a value in one of the sheets. The only code i founded so far is to duplicate a sheet:
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName('1').copyTo(ss);
but i do not find how to put this in a:
for (var i = 0; i < "X"; i++)...
code.
Anyone?
Thx!