eti3nne
MIS
- Feb 5, 2004
- 102
Hi,
I needed to ensure that excel 'calculation mode' was set to Automatic when a particular spreadsheet was activated, so I included this code:
Application.Calculation = xlCalculationAutomatic.
On de-activate, I set:
Application.Calculation = xlCalculationManual.
So far so good..., but it occurred to me that the user may have been in 'Automatic mode' prior to loading my spreadsheet.
So I thought it would be useful if I could test the current (ie. original) setting (at activation), store it and reset the excel 'Application.Calculation' to the original state on exit.
So, at last ... my question is ...
How do I determine the current state of Calcualation mode?
Thanks for looking.
I needed to ensure that excel 'calculation mode' was set to Automatic when a particular spreadsheet was activated, so I included this code:
Application.Calculation = xlCalculationAutomatic.
On de-activate, I set:
Application.Calculation = xlCalculationManual.
So far so good..., but it occurred to me that the user may have been in 'Automatic mode' prior to loading my spreadsheet.
So I thought it would be useful if I could test the current (ie. original) setting (at activation), store it and reset the excel 'Application.Calculation' to the original state on exit.
So, at last ... my question is ...
How do I determine the current state of Calcualation mode?
Thanks for looking.