Calculation Property

Microsoft Office Web Components Visual Basic

constant specifying the calculation mode. Read/write.

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