CalculateFull Method

Microsoft Excel Visual Basic

CalculateFull Method

       

Forces a full calculation of the data in all open workbooks.

expression.CalculateFull

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

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, a full calculation of the data in all open workbooks is performed.

If Application.CalculationVersion <> _
    Workbooks(1).CalculationVersion Then
    Application.CalculateFull
End If