问题
I find that each time i log in. The heavy functions I have do recalculate. IN particular it is functions including UrlFetch that recalculate and make 100s of calls to the url when I log in. I would rather just rely on the data I drew last time. Is there a way to block (haphazard) recalculation?
回答1:
Thanks for Ruben's help:
Function recalculation cannot be disabled.
the workarounds are (1.) to make a "switch" input to the function, which while in "don't update state" would make the function return nothing. If the function is of the "=FUNCTION()", in-cell, type, the empty return will overwrite your data, unfortunately. :/
(2) Functions that are in-cell, as above, will recalc no matter what. While, clearly, functions that are triggered otherwise - not in cells - would not.
What I will probably do is to write non-in-cell functions that drop the formulas into the cells. These will run, and re-run, only when pressing a button
来源:https://stackoverflow.com/questions/63431445/how-to-make-a-custom-function-not-recalculate-in-google-sheet