Hi,
so my issue is this: i need to conduct keyword searches in excel and color the keywords a different color without changing the font color of the entire cell. now, i found some code from another thread that does this, but i cant seem to get it to work with more than 2 keywords. i need some help fine-tuning the provided code to do what i need it to do.
please see: http://www.excelforum.com/excel-gene...ain-color.html
the VBA code i used was this:
i was playing around with the example, the Cat_Mouse.xlsm, and when i modified the 'myList' and 'myColor' arrays, it does not work.Please Login or Register to view this content.
Cat_Mouse.xlsm
for example, i modified the code to add the word bat:
when i run the macros, the word "Bat" does not become colored red. interestingly enough, when i substitute the word "bat" for the word "hat" in the "myLIST array, the word "hat" does change to the red font. any ideas on why this is happening?Please Login or Register to view this content.
i am looking to use this code to address keywords in my excel file by coloring all key words red and i have more than 10 key words.
any help would be appreciated, thanks.
Bookmarks