Worksheet.EnableCalculation Property

Gets or set a value that indicates whether Microsoft Office Excel automatically recalculates the worksheet when necessary.

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Property EnableCalculation As Boolean
bool EnableCalculation { get; set; }

Property Value

Type: System.Boolean
true if Excel automatically recalculates the worksheet when necessary; otherwise, false.

Remarks

When the value of this property is false, you cannot request a recalculation. When you change the value from false to true, Excel recalculates the worksheet.

.NET Framework Security

See Also

Reference

Worksheet Interface

Microsoft.Office.Tools.Excel Namespace