Share via


TextDate 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, cells that contain a text date with a two-digit year. False disables error checking for cells containing a text date with a two-digit year. Read/write Boolean.

expression.TextDate

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 text date with a two-digit year.

  Sub CheckTextDate()

    ' Simulate an error by referencing a text date with a two-digit year.
    Application.ErrorCheckingOptions.TextDate = True
    Range("A1").Formula = "'April 23, 00"

End Sub