View Single Post
 
Old 11-23-2022, 02:12 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote