View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dan R. Dan R. is offline
external usenet poster
 
Posts: 220
Default [Range].Find Help

I'm using the following to search for values on each sh, if/when found
it copies values back to the activesheet. But if the value is in
multiple columns it sometimes uses that value instead. Since it's
only supposed to search in column 3 why would it even find that value
in the first place?

With sh
xEnd = .Cells(Rows.count, 3).End(xlUp).Row
Set xRng = .Range(.Cells(2, 3), .Cells(xEnd, 3))
End With

Set rng = xRng.Find( _
What:=i.Value, _
LookIn:=xlValues, _
MatchCase:=False)

Thanks,
-- Dan