2

Please tell me any code which add the new sheet in spreadsheet every new month and change the name of the sheet by the month name .

1 Answers1

0

You could run an onOpen() function when the sheet is opened, check the date for what month and year it is, check if there is already a sheet with that name, and insert the sheet if one already does not exist.

on Open:

Documentation On Open

Date:

Stack Overflow Question - Get Month in JavaScript

Try to retrieve a sheet by name of current month:

Documentation Get Sheet by name

Condition:

If (sheetForCurrentMonthDoesntExist) {
  Insert Sheet;
};

Insert Sheet:

Documentation Insert Sheet

Community
  • 1
  • 1
Alan Wells
  • 30,746
  • 15
  • 104
  • 152