This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
For all open workbooks, forces a full calculation of the data and rebuilds the dependencies.
expression Required. An expression that returns one of the objects in the Applies To list.
Dependencies are the formulas that depend on other cells. For example, the formula "=A1" depends on cell A1. The CalculateFullRebuild method is similar to re-entering all formulas.
This example compares the version of Microsoft Excel with the version of Excel in which the workbook was last calculated. If the two version numbers are different, a full calculation of the data in all open workbooks is performed and the dependencies are rebuilt.
Sub UseCalculateFullRebuild() If Application.CalculationVersion <> _ Workbooks(1).CalculationVersion Then Application.CalculateFullRebuild End If End Sub