Find() parameters

  • Thread starter Thread starter scain2004
  • Start date Start date
S

scain2004

Is there a way to set the Find() parameters when looking for values in
sheet for only an exact match.

I have:

Set rngJob = Range("WORange").Cells.Find(job, LookIn:=xlValues)

where job is "55-021203-51".

Unfortunately, if it finds "55-021203-51/61/71", it returns tha
address, which is incorrect.

So if job = "55-021203-51" it should pass over "55-021203-51/61/71" fo
not being an exact match.

Any suggestions?

Thanks,
Stev
 
Ok, figured it out.

By default LookAt is set at xlPart.

I changed LookAt to xlWhole
 

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