Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-24-2013, 11:34 PM
macropod's Avatar
macropod macropod is offline Macro to highlight text between 2 points in word 2010 Windows 7 64bit Macro to highlight text between 2 points in word 2010 Office 2010 32bit
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

Why do you need a macro? A wildcard Find/Replace can do the same job, where:
Find = xxx(*)yyy
Replace = \1
and the replacement attributes have the desired highlighting set.

Note: the above even deletes the markers as part of the process. If you don't want that, change \1 to ^&.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to highlight text between 2 points in word 2010 how to selectively highlight text in word cnyoon2 Word 1 08-04-2015 08:16 AM
Macro to highlight text between 2 points in word 2010 Bullet points with text? jjmclell Word 2 03-01-2013 11:42 AM
Edit Points in Curve: MS Office changes points properties itself, without my action. Sergey SPb PowerPoint 0 08-27-2012 05:33 AM
Trying to highlight pasted text in a macro goldengate Word VBA 0 09-14-2010 09:41 PM
find - reading highlight - highlight all / highlight doesn't stick when saved bobk544 Word 3 04-15-2009 03:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:50 PM.


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