Syntax

expression.NumberAsText

expression A variable that represents an ErrorCheckingOptions object.

Example

In the following example, the AutoCorrect Options button appears for cell A1, which contains a number stored as text.

Visual Basic for Applications
Sub CheckNumberAsText() ' Simulate an error by referencing a number stored as text. Application.ErrorCheckingOptions.NumberAsText = True Range("A1").Value = "'1" End Sub
number number as text numberas numberastext numberastext property

See also: