CalculationVersion Property

Microsoft Excel Visual Basic

object, this property returns the information about the version of Excel that the workbook was last fully recalculated by. Read-only Long.

expression.CalculationVersion

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

If the workbook was saved in an earlier version of Excel and if the workbook hasn't been fully recalculated, then this property returns 0.

Example

This example compares the version of Microsoft Excel with the version of Excel that the workbook was last calculated in. If the two version numbers are different, the example sets the blnFullCalc variable to True.

If Application.CalculationVersion <> _
    Workbooks(1).CalculationVersion Then
    blnFullCalc = True
Else
    blnFullCalc = False
End If