Syntax

expression.EvaluateToError

expression A variable that represents an ErrorCheckingOptions object.

Example

In the following example, the AutoCorrect Options button appears for cell A3, which contains a divide-by-zero error.

Visual Basic for Applications
Sub CheckEvaluationError() ' Simulate a divide-by-zero error. Application.ErrorCheckingOptions.EvaluateToError = True Range("A1").Value = 1 Range("A2").Value = 0 Range("A3").Formula = "=A1/A2" End Sub
evaluate evaluate to error evaluateto evaluatetoerror evaluatetoerror property

See also: