Excel VBA - 检测无效引用的函数

Ste*_*eng 2 excel vba keyboard-shortcuts excel-vba

我是excel vba的新手.是否有任何功能可以检测单元格值#REF!

chr*_*sen 5

假设CellReference引用一个单元格,

要检测任何错误,请使用If IsError(CellReference) Then

检测#REF!具体使用If CellReference = CVErr(xlErrRef) Then