EmptyCellReferences Property

ErrorCheckingOptions.EmptyCellReferences Property (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

When set to True (default), Microsoft Excel identifies, with an AutoCorrect Options button, selected cells containing formulas that refer to empty cells. False disables empty cell reference checking. Read/write Boolean.

expression .EmptyCellReferences

expression A variable that represents an ErrorCheckingOptions object.

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
© 2016 Microsoft