View Single Post
 
Old 03-11-2021, 04:05 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,342
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 RavindraBanthia View Post
The first routine works perfectly except when the paragraph mark itself is bold/italics.
On the contrary, it handles those paragraph marks correctly, precisely because that is how they have been formatted. To exclude the paragraph marks, change:
.Text = ""
to:
.Text = "[!^13]{1,}"

See the notes in the linked post.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote