Search Question

  • Thread starter Thread starter Roy Lasris
  • Start date Start date
R

Roy Lasris

I have a formula that accurately finds the existence of a term, but I need to
know in which cell the the term was found. Here is the formula:

foundit = Cells.Find(what:="ABC")

How can I determine the cell that "ABC" was in, and if it exists in any other
cells as well. Thanks.

Roy
 
Maybe a little more:


Dim foundit as Range
set foundit = Cells.Find(what:="ABC")

if not foundit is nothing then
msgbox foundit.Address
else
msgbox "Not found"
End if
 
And you may want to specify all the parms that go with .find.

Excel will try to help you by using the last ones that were specified--the stuff
hanging around may not be what you really want.
 

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