语法
表达式.ErrorCheckingOptions
表达式 一个代表 Application 对象的变量。
示例
在本示例中,TextDate 属性与 ErrorCheckingOptions 属性结合使用。当用户选择的单元格中的日期用 2 位数表示年份时,将出现“自动更正选项”按钮。
function CheckTextDate() { // Enable ET to identify dates written as text. Application.ErrorCheckingOptions.TextDate = true Range("A1").Formula = "'April 23, 00" }