Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CalculationState Property
Collapse the table of content
Expand the table of content

Application.CalculationState Property (Excel)

Returns an XlCalculationState constant that indicates the calculation state of the application, for any calculations that are being performed in Microsoft Excel. Read-only.

expression .CalculationState

expression A variable that represents an Application object.

In this example, Microsoft Excel checks to see if any calculations are being performed. If no calculations are being performed, a message displays the calculation state as "Done". Otherwise, a message displays the calculation state as "Not Done".

Sub StillCalculating() 
 If Application.CalculationState = xlDone Then 
 MsgBox "Done" 
 MsgBox "Not Done" 
 End If 
End Sub
© 2015 Microsoft