返回一个 ErrorCheckingOptions 对象,该对象代表应用程序的错误检查选项。
expression.ErrorCheckingOptions
expression 必需。该表达式返回“应用于”列表中的对象之一。
在本示例中,TextDate 属性与 ErrorCheckingOptions 属性结合使用。当用户选择的单元格中的日期用 2 位数表示年份时,将出现“自动更正选项”按钮。
Sub CheckTextDate()
' Enable Microsoft Excel to identify dates written as text.
Application.ErrorCheckingOptions.TextDate = True
Range("A1").Formula = "'April 23, 00"
End Sub