Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone tell me why this won't find the next value in the loop... it
stays on the first one and crashes my excel... heets("c").Select Set wks = ActiveSheet Set rngToSearch = wks.Columns(1) Set RngFound = rngToSearch.Find(what:="new", LookIn:=xlValues, lookat:=xlWhole) If RngFound Is Nothing Then MsgBox "Nothing" Else Do r = RngFound.Row Range("a" & r, "z" & r).Select With Selection.Interior .ColorIndex = 36 .Pattern = xlSolid End With Range("a" & r).Select Set RngFound = rngToSearch.FindNext Loop Until RngFound Is Nothing End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Findnext | Excel Discussion (Misc queries) | |||
Using 'Find' and 'FindNext' in vba | Excel Programming | |||
Find, Findnext VBA Loop | Excel Programming | |||
FindNext | Excel Programming | |||
FindNext | Excel Programming |