t0mkaka
t0mkaka

Reputation: 1851

How to use the same script for different spreadsheets?

I have program that generates a spreadsheet documenting experiment results. I have written an app script to calculate the results and do formatting on the sheet.
It is working for the first file but when another spreadsheet is used I want to run the same script on that also.
As I am unable to find any link to the script that I have written, I want to know how I can use the same script for different spreadsheet files.

Upvotes: 1

Views: 786

Answers (1)

Srik
Srik

Reputation: 7947

You can convert your script in the first spreadsheet as a library and access it from the second. More information : https://developers.google.com/apps-script/guide_libraries

Upvotes: 1

Related Questions