WPS 基础接口 > 表格 API 参考 > Application > 属性 > Application.ErrorCheckingOptions 属性
返回一个 ErrorCheckingOptions 对象,该对象表示应用程序的错误检查选项。

语法

表达式.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"
}


请参阅