Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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-cas 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 th .find the error message is Compile Error: Invalid or unqualifie reference. any ideas -- funkymonkU ----------------------------------------------------------------------- funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813 View this thread: http://www.excelforum.com/showthread.php?threadid=55650 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and Replace Sheet names | Excel Discussion (Misc queries) | |||
How to find and Replace hyperlink in hold sheet? | Excel Discussion (Misc queries) | |||
Find Replace Formula | Excel Discussion (Misc queries) | |||
Find and REPLACE within a selection, or column- not entire sheet/. | Excel Worksheet Functions | |||
Find and Replace code in Sheet modules | Excel Programming |