Do not the code there uses:
.MatchCase =True
which means it will only find strings where the case in the text is what you're supplying in code. You could change it to:
.MatchCase = False
but you might then be doing some unintended highlighting (or maybe you'll catch some that would outherwise be missed).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|