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
Post a Comment