Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-11-2021, 04:05 PM
macropod's Avatar
macropod macropod is offline Help in finding/developing a macro to markup and apply styles to a Word document Windows 10 Help in finding/developing a macro to markup and apply styles to a Word document Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to apply Normal dot styles John9210 Word VBA 2 06-07-2018 05:15 PM
URGENT: Macro to open document and apply other macros successively Krategy Word VBA 1 12-02-2016 04:41 PM
VBA Word - Find & Apply Styles to Specific Words - Using Case Statement jc491 Word VBA 17 12-26-2015 12:25 PM
Apply styles in word table 1van Word VBA 2 11-17-2015 11:05 AM
Help in finding/developing a macro to markup and apply styles to a Word document Need help developing a way to visually represent information on Word Liz T Word 4 07-22-2015 09:10 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft