View Single Post
 
Old 04-16-2020, 02:40 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,478
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

Quote:
Originally Posted by mrsandes View Post
So if I were to test the results with the search looking for all matches (without parenthesis), I would have to add the '|' characters to each of the found acronyms? That's what the replace line is doing, right?
No, it's not as simple as adding the | character. You would do better to do a search for such acronyms and make sure they're properly formatted to begin with.
Quote:
Originally Posted by mrsandes View Post
That change has a side effect of replacing the first instance of the acronym to all uppercase letters definition, so the first instance looks like: PARTS LIST (PL). Would you be aware of something to go around it?
You could insert:
.MatchCase = True
before:
.Replacement.Text = StrExp & " (" & StrAcc & ")"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote