Searching for keywords

  • Thread starter Thread starter tess457
  • Start date Start date
T

tess457

is there a way of searching a range of cells, to see if ANY of th
contents of the cell match a string. For example, if cell A1 contain
the words "Pizza, Milk, Bread", and I am only searching for pizza,
still want to select that cell?

Selection.FormulaR1C1 = "=OR(RC[-3]={""" & FVar & """})"

I am using the above code to filter my cells right now....but this onl
works if the ENTIRE cell equals my search variable(FVar)? is there a wa
of changing this code to test whether any contents of the cell equal m
search variable?? Thanks for the help!
 

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