Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-09-2017, 10:33 PM
macropod's Avatar
macropod macropod is offline Macro in Word to track colour of highlighted text Windows 7 64bit Macro in Word to track colour of highlighted text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,512
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

You posted two macros, the first of which concerns only comments, not tracked changes.

For the second macro, you would presumably need to add and format another column to the table it creates, in the sections after:
'Insert a 6-column table for the tracked changes and metadata
'Format the table appropriately
'Insert table headings
then output the tracked highlights to that column, by modifying the code after:
'Get info from each tracked change (insertion/deletion) from oDoc and insert in table
Highlights would be included in:
Case wdRevisionProperty
but so too are formatting changes, for example. And, although you can test whether the revision range is highlighted, Word can't tell you whether the revision was the highlighting or, say, a change to the font formatting that happens to span the same range. The only way to find that out would be to reject or accept the revision, test whether the highlighting is still there, then undo the reject or accept.

You'd presumably also want to change the prompts.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
add-in, highlighted-text, marco

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro in Word to track colour of highlighted text How do I select all text highlighted in a specific colour? bertietheblue Word 2 04-15-2016 12:30 PM
Macro in Word to track colour of highlighted text I need to convert shaded text into highlighted text on about 80 different long documents. VBA macro? AustinBrister Word VBA 8 05-28-2015 02:42 PM
Macro in Word to track colour of highlighted text How to filter sentences wth highlighted colour rajpes Word 4 02-25-2011 12:43 AM
Macro to mark non-coloured/non-highlighted text as hidden PeterB Word 0 10-28-2009 07:54 AM
track changes author colour issues Mesana Word 0 07-17-2009 06:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:29 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