I utilized a word macro to replace all text in wdREd with wdBlack. Despite including the line ActiveDocument.TrackRevisions = True, the tracked changes are not visible after executing the macro. I would appreciate any assistance in resolving this issue. Thank you kindly for your support!
Code: Select all
Sub RedToBlack()
ActiveDocument.TrackRevisions = True
Dim rng As Range
Set rng = ActiveDocument.Content
With rng.Find
.ClearFormatting
.Font.ColorIndex = wdRed
.Replacement.ClearFormatting
.Replacement.Font.ColorIndex = wdBlack
.Execute Replace:=wdReplaceAll
End With
End Sub