Problems with .find code

  • Thread starter Thread starter keri
  • Start date Start date
K

keri

Hi,

I have code to look for the word TOTAL in a sheet

set rng = .find(What:="TOTAL")

however this finds cells that have total included anywhere in the
cell
eg Total Order
VAT Total

etc etc

I only want to find cells that the contents = TOTAL and I cannot
figure out a way to do this.
 
Record a macro when you change all the settings you want. Click on the Options
button if you don't see all of them.

Then your recorded macro will show you all the parms you should be specifying.
 
Thanks. In case anybody is interested (I doubt it as it was a silly
question with a simple answer) it was the xlWhole part I was missing.
 

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