NumberAsText Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

When set to True (default), Microsoft Excel identifies, with an AutoCorrect Options button, selected cells that contain numbers written as text. False disables error checking for numbers written as text. Read/write Boolean.

expression.NumberAsText

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 number stored as text.

  Sub CheckNumberAsText()

    ' Simulate an error by referencing a number stored as text.
    Application.ErrorCheckingOptions.NumberAsText = True
    Range("A1").Value = "'1"

End Sub