How can I automatically create and name new sheets in a google spreadsheet from a list of names, such as a student roll sheet? I would like each new sheet to be created when I add corresponding names to a list in a spreadsheet column. The new sheets can be in the same spreadsheet.
Google-sheets – Auto create and name new sheet in Google Spreadsheet
google sheetsgoogle-apps-script
Related Topic
- Google-sheets – Rearranging Google form data in a new sheet
- Google-sheets – Auto-create and name new sheet in Google sheets from names being filled from a Google form
- Google-sheets – Copy submitted form data to new automatically generated Google sheet
- Google-sheets – How to create new tabs/sheets from each additions to a column
- Google-sheets – Auto Create New Google Sheet With Column Headers Based on List of Names
- Google-sheets – Autofill Google sheets template based on new entries in column A of “master” sheet
- Google-sheets – Duplicate and rename vs make a blank sheet and name
Best Answer
The following piece of script will create a menu item in the spreadsheet named Maintenance. There are three menu option present named:
Add Student one by one, Add Student's at once (FIFO), Add Student's at once (LIFO), Delete Sheets
The next piece of code will create a new sheet, only if all information is entered properly. Once the information is entered, select the student that needs to be added and press Add Student:
The third piece of code will create new sheets, based on the sheet names, press Add Student's at once (FIFO):
The fourth piece of code will create new sheets, based on the sheet names, but by itterating backwards, press Add Student's at once (LIFO):
The last script is a bonus to delete all the created sheets, execpt the first sheet, press Delete Sheets:
I've prepared an example file, to see things happening: Add Student to New Sheet.