By calling a function in a spreadsheet, you call the Spreadsheet service, asking it to go back and forth to the server to run the results of your function. As a result, you have earned a couple of hundred requests in a very short period of time.
One job might be to add your function to multiple cells at a time. Of course, when you open the sheet again, you are likely to encounter the same problem.
Depending on what your function is trying to execute, it may be worth using the built-in spreadsheet functions. There is a lot of power. Writing a function that acts on a range of values, rather than one cell, may be another, better, option. It can be launched using a custom menu item or using the script manager.
Remember that batch actions are your best friend when it comes to working with spreadsheets.
fooby
source share