OmittedCells Property

Microsoft Excel Visual Basic

expression.OmittedCells

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 A4, which contains a formula.

Sub CheckOmittedCells()

    Application.ErrorCheckingOptions.OmittedCells = True
    Range("A1").Value = 1
    Range("A2").Value = 2
    Range("A3").Value = 3
    Range("A4").Formula = "=Sum(A1:A2)"

End Sub