Hi have the following piece of code
Sub test()
For Each ws In Worksheets
Set e = .Find(what:="#REF!", LookIn:=xlFormulas)
If Not e Is Nothing Then
firstAddress = e.Address
Do
e.Replace what:="#REF!", Replacement:="'Case-by-case mgmt'!", _
LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
'ActiveCell.Offset(0, 2).Value = "Received"
'ActiveCell.Offset(0, 18).Value = e.Value
Set e = .FindNext(e)
Loop While Not e Is Nothing And e.Address <> firstAddress
End If
Next
End Sub
when i run this it breaks at the set e = .find part and highlights the .find the error message is Compile Error: Invalid or unqualified reference.
any ideas?
Bookmarks