![]() |
#3
|
||||
|
||||
![]()
Greg's suggestion takes care of your inserted text. To also deal with the deleted text you need to add a condition for it
Code:
Sub acceptChanges() Dim oRev As Revision For Each oRev In ActiveDocument.Revisions If oRev.Type = wdRevisionInsert Then oRev.Range.Font.Color = wdColorBlue oRev.Accept ElseIf oRev.Type = wdRevisionDelete Then oRev.Range.Font.Color = wdColorRed oRev.Range.Font.StrikeThrough = True oRev.Reject End If Next End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jec1 | Word VBA | 2 | 12-04-2019 11:32 PM |
Word (Windows) cannot accept/reject edits from Word (Mac) | Michael Graubart | Word | 0 | 07-24-2019 04:04 AM |
![]() |
Jennifer Murphy | Word | 14 | 03-19-2017 03:02 PM |
Advanced Font Color Manipulation In Word: Inserting another color than the surrounding text | stuartg | Word | 1 | 02-20-2017 12:38 AM |
Font Color Question//.Replacement.Font.Color = 12611584 | rsrasc | Word VBA | 3 | 09-05-2015 09:03 PM |