Highlighting changes in Microsoft Word



It happens sometimes that you are required to fully show all the changes made in a document (Word) especially if you are working on a manuscript for a journal or conference and in the revision submission you need to highlight the changes.

You can use the "Track Changes" feature in Word to keep track of all the changes, however, sometimes the journals particularly ask for some sort of visual cue (for example red colour, highlighted style, etc.) to make it easier to identify the changes in the document.

So if you have used the "Track Changes" feature in Word to keep track of all your changes, you can use the following piece of code in "Developer mode" under "Visual Basic" to create a function that will do the styling for you.

In the following example, the changes are highlighted with yellow colour, but understanding the function, you can apply any type of styling you need to your changes.

Sub Tracked_to_highlighted() 'to not accept all track changes and change highlight colour to yellow tempState = ActiveDocument.TrackRevisions 'Turn off track changes ActiveDocument.TrackRevisions = False For Each Change In ActiveDocument.Revisions Set myRange = Change.Range 'myRange.Revisions.AcceptAll myRange.HighlightColorIndex = wdYellow Next ActiveDocument.TrackRevisions = tempState End Sub {codeBox}

Post a Comment

Previous Post Next Post