To use this script in Google Drive:
- In your spreadsheet, click Tools->Script Editor.
- Paste the contents of Code.gs into the editor.
- Save.
- Select "Allow" when Google asks about permissions.
- Reload your spreadsheet.
You should now see a new file menu option, "Export".
@JezVanderBrown this link will be helpful for you. I was able to very easily use it to export as a new Google Sheet. Now I'm trying to figure out this code to export as pdf lol
https://stackoverflow.com/questions/31078758/how-do-i-make-copy-of-spreadsheet-and-save-it-to-particular-folder?answertab=oldest#tab-top