F
frank
I'm trying to create a macro that will clean out the tracked changes created
by a program called DeltaView. DeltaView is similar to the native Word
compare and merge feature except it uses styles to show deleted and inserted
text.
Deleted text is styled as "DeltaView Deletion" style which has style
attributes of Red font and crossed out text. I want to remove all of the
text in the document that is styled with the DeltaView Deletion style. I can
achieve this by using the coding below, but it only removes the desired text
from the main part of the document. I need to ensure that this text is
removed from the headers/footers and textboxes/frames.
Why would we show the tracked changes using this program and then want to
remove them?...That's a longer boring story.
This is the code I use for the main document:
Set myRange = ActiveDocument.Content
With myRange.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = ""
.Replacement.Text = ""
.Style = "DeltaView Deletion"
.Execute Replace:=wdReplaceAll
End With
Any help is always greatly appreciated.
Thank you.
by a program called DeltaView. DeltaView is similar to the native Word
compare and merge feature except it uses styles to show deleted and inserted
text.
Deleted text is styled as "DeltaView Deletion" style which has style
attributes of Red font and crossed out text. I want to remove all of the
text in the document that is styled with the DeltaView Deletion style. I can
achieve this by using the coding below, but it only removes the desired text
from the main part of the document. I need to ensure that this text is
removed from the headers/footers and textboxes/frames.
Why would we show the tracked changes using this program and then want to
remove them?...That's a longer boring story.
This is the code I use for the main document:
Set myRange = ActiveDocument.Content
With myRange.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = ""
.Replacement.Text = ""
.Style = "DeltaView Deletion"
.Execute Replace:=wdReplaceAll
End With
Any help is always greatly appreciated.
Thank you.