共用方式為


WorksheetBase.EnableCalculation Property

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

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

Syntax

'Declaration
Public Property EnableCalculation As Boolean
public 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

WorksheetBase Class

Microsoft.Office.Tools.Excel Namespace