Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-27-2014, 09:56 AM
rohanrohith rohanrohith is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Nov 2014
Posts: 2
rohanrohith is on a distinguished road
Default Undo highlighted text

Hi friends,



macro to find the text is highlighted text and i undo highlight. with macro.
Reply With Quote
  #2  
Old 11-27-2014, 04:02 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Windows 7 64bit Office 2013
Expert
 
Join Date: Aug 2011
Posts: 3,042
Stefan Blom is a jewel in the roughStefan Blom is a jewel in the roughStefan Blom is a jewel in the rough
Default

To remove all highlighting in the main body of the document at once, use the following line of code:

Code:
ActiveDocument.Content.HighlightColorIndex = wdNoHighlight
__________________
Stefan Blom
Microsoft Word MVP
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting- Apply changes to highlighted text results in same change to other text sential Word 6 01-10-2014 03:22 PM
Copy paste highlighted text to another doc MSoffice1 Word VBA 9 07-18-2013 10:35 AM
Delete button does not work with highlighted text edmund36 Word 3 10-17-2011 02:34 AM
Remove highlighted text when inserting comments Iammuffinman Word 3 01-27-2011 02:02 AM
Highlighted text won't delete - when I press enter Gague Word 2 07-09-2010 12:53 PM


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


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft