Reputation: 1521
I am new to excel vba. Is there any function that would detect the cell value as #REF!
?
Upvotes: 2
Views: 5643
Reputation: 53126
Assuming CellReference
references a cell,
To detect any error, use If IsError(CellReference) Then
To detect #REF!
specifically use If CellReference = CVErr(xlErrRef) Then
Upvotes: 5