WPS 基础接口 > 表格 API 参考 > Application > 属性 > Application.CalculationInterruptKey 属性
设置或返回一个 XlCalculationInterruptKey 常量,该常量指定在执行计算时可中断 ET 的键。可读写。

语法

表达式.CalculationInterruptKey

表达式   一个代表 Application 对象的变量。

示例

在本示例中,ET 确定对中断计算的键的设置,并通知用户。

示例代码
function CheckInterruptKey() {

    // Determine the calculation interrupt key and notify the user.
    switch(Application.CalculationInterruptKey) {
        case xlAnyKey:
            MsgBox("The calcuation interrupt key is set to any key.")
            break
        case xlEscKey:
            MsgBox("The calcuation interrupt key is set to 'Escape'")
            break
        case xlNoKey:
            MsgBox("The calcuation interrupt key is set to no key.")
            break
        default:
            MsgBox("default")
	}
}


请参阅