View Single Post
 
Old 07-15-2018, 03:20 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
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

Your attachment has 'Command:' and 'Some text' on the same line, so it's unreasonable to expect the macro coded to deal with the document as supplied to put them on different rows when you didn't say that's what you wanted. Furthermore, your attachment has a non-breaking space between 'Command:' and 'Some text', just like the others, not the standard space you're now saying it has. To handle both scenarios, you could change:
.Text = ":[^s]{1,}"
to:
.Text = ":[ ^s]{1,}"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote