Calculation Property

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.  

XlCalculation

XlCalculation can be one of these XlCalculation constants.
xlCalculationAutomatic Formulas are calculated automatically when precedent cells are changed.
xlCalculationManual Formulas are not recalculated until the user initiates a recalculation.

expression.Calculation

expression   Required. An expression that returns a Spreadsheet object.

Example

This example places Spreadsheet1 into manual calculation mode.

  Sub ManualCalculationMode()

   Dim ssConstants

   Set ssConstants = Spreadsheet1.Constants

   ' Set Spreadsheet1 to manual calculation mode.
   Spreadsheet1.Calculation = ssConstants.xlCalculationManual

End Sub