sh.Cells.Find()

  • Thread starter Thread starter Dan R.
  • Start date Start date
D

Dan R.

I'm using the following to search for values in multiple worksheets.
Is there a way to specify which column it looks in to speed up the
code a bit?


For Each sh In bk.Worksheets
For Each i In iRng
Set rng = sh.Cells.Find( _
What:=i.Value, _
LookIn:=xlValues, _
Lookat:=xlWhole, _
MatchCase:=False)


' Do Stuff

Next i
Next sh


Thanks,
-- Dan
 
Set rng = sh.Range("A1:A10000").Find(i.Value, LookIn:=xlValues)

"Dan R." skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top