EmptyCellReferences Property

Microsoft Excel Visual Basic

expression.EmptyCellReferences

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

In the following example, the AutoCorrect Options button appears for cell A1 which contains a formula that references empty cells.

Sub CheckEmptyCells()

    Application.ErrorCheckingOptions.EmptyCellReferences = True
    Range("A1").Formula = "=A2+A3"

End Sub