Hi!
i'm trying to find Error #REF but i didn't manage it to work. and i don't know what is it i'm missing?
here the code
Dim ws As Worksheet
Dim R As Range
Dim sCell As Variant
For Each ws In ThisWorkbook.Worksheets
Set R = ws.UsedRange
For Each sCell In R
If sCell.Value = CVErr(xlErrRef) Then
sCell.Select
Stop:Resume
End If
Next sCell
Next ws
thanks in advance
i'm trying to find Error #REF but i didn't manage it to work. and i don't know what is it i'm missing?
here the code
Dim ws As Worksheet
Dim R As Range
Dim sCell As Variant
For Each ws In ThisWorkbook.Worksheets
Set R = ws.UsedRange
For Each sCell In R
If sCell.Value = CVErr(xlErrRef) Then
sCell.Select
Stop:Resume
End If
Next sCell
Next ws
thanks in advance