Is it possible to add a script to a spreadsheet yo

2019-08-08 15:05发布

问题:

I know it's a long shot however, do you know if it is possible to attach a script to a spreadsheet you create in a script?

pseudo code version would be

function create_spreadsheet

new spreadsheet = ... creates spreadsheet

new spreadsheet = ... fills with appropriate formatting

-Need help part is -
new spreadsheet add script = ... Attach Following script to the new spreadsheet.
-Need help part is - 

回答1:

I have not gotten to try it yet, but rather than creating a spreadsheet you could copy a public version of a spreadsheet that includes the script.