Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
in the help, they use firstaddress = c.address so the code doesn't loop
continuously if i use similar, it generates an error, but my code seems to run fine, what's the difference? With ws.Range("C1:C" & lastRow) Set rngFound = .Find(What:="<", LookIn:=xlValues) Do If Not rngFound Is Nothing Then rngFound.Value = Replace(Replace(rngFound.Value, "<", "-", 1), "", _ "") rngFound.NumberFormat = "#,##0_);[Red](#,##0.00)" Set rngFound = .FindNext(rngFound) End If Loop While Not rngFound Is Nothing End With -- Gary |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Findnext problem | Excel Programming | |||
Findnext | Excel Discussion (Misc queries) | |||
FindNext | Excel Programming | |||
FindNext | Excel Programming |