ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Calculation toggle (https://www.excelbanter.com/excel-programming/399144-calculation-toggle.html)

JP[_3_]

Calculation toggle
 
Hello,

Is there a property or method that returns the current calculation
state (xlcalculationmanual, automatic etc)?

Tried searching but can't seem to locate this anywhere.


Thx!

--JP


Charles Williams

Calculation toggle
 
Application.calculation

"JP" wrote in message
ps.com...
Hello,

Is there a property or method that returns the current calculation
state (xlcalculationmanual, automatic etc)?

Tried searching but can't seem to locate this anywhere.


Thx!

--JP




JP[_3_]

Calculation toggle
 
Thank you, I ended up using this code:

' get current calculation mode and store as variable, then set it to
manual for faster code
X = Application.Calculation
Application.Calculation = xlCalculationManual
'
' my code here
'
' set calculation to whatever it was before
Application.Calculation = X


Thx,
JP


On Oct 11, 9:27 am, "Charles Williams"
wrote:
Application.calculation

"JP" wrote in message

ps.com...



Hello,


Is there a property or method that returns the current calculation
state (xlcalculationmanual, automatic etc)?


Tried searching but can't seem to locate this anywhere.


Thx!


--JP- Hide quoted text -


- Show quoted text -





All times are GMT +1. The time now is 04:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com