excel - How to find partial value/text from cells in a column using vba? -


i have been looking around stackoverflow on 2 days, not find decent solution, here question.

basically, need vba find cells contains value/text , change cells such value/text different color.

for instance, want cells containing "holly" selected , changed different colors , text in of following forms: holly, holly, hollywood, holly w, hollyw, hollywo, etc.

below have tried, no luck. instead of changing cells contains "holly," changes cells regardless of value/text in cell.

option compare text  sub dataverification()      range("a:a").interior.colorindex = xlnone      each cell in range("a:a")      if ucase(activecell.value) "holly*"      cell.interior.colorindex = 37      end if end sub 


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -