语法
表达式.EmptyCellReferences
表达式 一个代表 ErrorCheckingOptions 对象的变量。
示例
在下例中,单元格 A1 旁出现“自动更正选项”按钮,该单元格包括引用空单元格的公式。
function CheckEmptyCells() { Application.ErrorCheckingOptions.EmptyCellReferences = true Range("A1").Formula = "=A2+A3" }