A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
U,
re: where/when to alter calculation mode
Not when the add-in is loaded.
A NEW EVALUATION FOLLOW...
The proposed code (1) saves the existing calculation setting, (2) changes the calc mode to manual, (3) code runs, (4) changes the calc mode back to the saved mode. If the calc mode was manual when the code starts it remains manual when code execution completes. In that case, nothing is calculated, even if some values were changed (the worksheet would be wrong).
Your best bet may be to just add one line to each appropriate sub or function.
It would be located just before the sub or function exits.
It would look like...
If Application.UserName = "uyentule01" Then Application.Calculation = xlCalculationManual
(requires your actual user name)
That would allow the existing code to automatically calculate, but if the code were run on your machine,
it would switch back to manual calc when the code completes.
Note that not all sub/functions should have that line added. If you can't make that decision comfortably then don't do it.
Please reconsider and look again at adding the button to the QAT to toggle calculation.
[Edit - added picture below]
I created a calc option for my Extras for XL add-in (xl97 thru xl2010)
'---
Jim Cone
https://goo.gl/IUQUN2 (Dropbox)