Range.Dirty Method
Designates a range to be recalculated when the next recalculation occurs.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub Dirty
'Usage
Dim instance As Range
instance.Dirty()
void Dirty()
Remarks
The Calculate method forces the specified range to be recalculated, for cells that Microsoft Excel understands as needing recalculation.
If the application is in manual calculation mode, using the Dirty method instructs Excel to identify the specified cell to be recalculated. If the application is in automatic calculation mode, using the Dirty method instructs Excel to perform a recalculation.