View Single Post
 
Old 07-06-2020, 04:01 AM
1van 1van is offline Windows 10 Office 2016
Novice
 
Join Date: Nov 2015
Posts: 4
1van is on a distinguished road
Default Accept/reject tracked changes in word and retain font color/formatting

Hello,


I have been using a macro that accepts tracked insertions and leaves the formatting of the text (blue):


Sub acceptChanges()
Dim oRev As Revision
For Each oRev In ActiveDocument.Revisions
If oRev.Type = wdRevisionInsert Then
oRev.Range.Font.Color = wdColorBlue
End If
oRev.Accept
Next
End Sub


but in this case the deletions (red text) is removed from the document, so my question is: is there a way to make a single macro that will simultaneously find insertions (blue text) accept them, and leave them blue, but if it finds deletions they would be rejected and left red/strike-trough? Because I cant make it happen...
Reply With Quote