I'm trying to figure out how to automatically create a templated Google Sheets worksheet when a new entry is made in a different sheet.
So the flow would be:
- Person's name is added into Google sheet A, along with data point X
- This automatically creates a new Google sheet B
- Google sheet B is already pre-populated from a template with a few data points. It is automatically also populated with Person's name and data point X
I haven't been able to find solutions that include the pre-population. Any examples I could draw on? Is Google add-ons a good approach here?
Best Answer
Try this:
This function get called when 'Create Sheet'!B1 gets edited with a new name.
The Sheet Named 'Create Sheet' Looks Like this:
And you type the name of the new sheet into Create Sheet B1
The Original Sheet Looks like this:
The contents of the Original Sheet get copied into the new sheet contents and format.
The New Sheet is given the name that was typed into Create Sheet B1. This is what the new sheet looks like: