Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Error in Sub
Hi
I've copied this out of the help in Excel 2003 and amended it for my use, it works and corrects the data but I get a debug error on the Loop line. The data is JW F1871810 and I want it to be F1871810 With Worksheets("Sheet2").Range("A:A") Set c = .Find("JW F", LookIn:=xlValues) If Not c Is Nothing Then firstAddress = c.Address Do c.Value = Mid((c), 4, 8) Set c = .FindNext(c) Loop While Not c Is Nothing And c.Address < firstAddress End If End With Thanks Wendy |