Convert Track Change Format to "Regular" Word Format

V

vsingler

Is there a way to "convert" text with track change's underline and
strikethrough formats to text with "regular" underline and strikethrough
format?

We have a document that has been edited with Track Changes turned on -
insertions show with underline and deletions show with strikethrough.The
document's author wants all readers (inside and outside the company) to see
underlines and deletions formatted in two specific colors and formats but
doesn't want other users' track change preferences to influence the display.
He also doesn't want to have to manually format the changes. We tried a "find
& replace" to try to find text with underlined formatting, but it could only
find the character formatting, not track changes' version of underlining.

Thanks, in advance. Any suggestions would be much appreciated.
 
W

WilliamWMeyer

vsingler said:
Is there a way to "convert" text with track change's underline and
strikethrough formats to text with "regular" underline and strikethrough
format?

We have a document that has been edited with Track Changes turned on -
insertions show with underline and deletions show with strikethrough.The
document's author wants all readers (inside and outside the company) to
see
underlines and deletions formatted in two specific colors and formats but
doesn't want other users' track change preferences to influence the
display.
He also doesn't want to have to manually format the changes. We tried a
"find
& replace" to try to find text with underlined formatting, but it could
only
find the character formatting, not track changes' version of underlining.

Thanks, in advance. Any suggestions would be much appreciated.


Here is the code for a macro I wrote to do this a couple of years ago. I
just tested it and it works. The process is a little complicated.

1. Make sure Track Changes is turned *off* on the document you're working
on.

2. Run the macro below

3. Here's the complicated part. Even though they've now been given
independent formatting, if you accept or reject all the track changes in the
document now you would still lose the deletions or the insertions.
Therefore, what I found works is to start a new document, turn track changes
on for that (blank) doc, paste all the contents of the working doc into the
new (text comes in as a new, mega-insertion), then ACCEPT all changes in the
new.

--WilliamW


Sub StrikethroughDeletions()

Number = ActiveDocument.Revisions.Count
For x = 1 To Number
Set myRev = ActiveDocument.Revisions(x).Range
This = ActiveDocument.Revisions(x).Type
If This = 2 Then
myRev.Select
Selection.Font.StrikeThrough = True
End If
If This = 1 Then
myRev.Select
Selection.Font.Underline = True
End If
Next x

End Sub
 
V

vsingler

Thanks, William! I'll try it out.

Val

WilliamWMeyer said:
Here is the code for a macro I wrote to do this a couple of years ago. I
just tested it and it works. The process is a little complicated.

1. Make sure Track Changes is turned *off* on the document you're working
on.

2. Run the macro below

3. Here's the complicated part. Even though they've now been given
independent formatting, if you accept or reject all the track changes in the
document now you would still lose the deletions or the insertions.
Therefore, what I found works is to start a new document, turn track changes
on for that (blank) doc, paste all the contents of the working doc into the
new (text comes in as a new, mega-insertion), then ACCEPT all changes in the
new.

--WilliamW


Sub StrikethroughDeletions()

Number = ActiveDocument.Revisions.Count
For x = 1 To Number
Set myRev = ActiveDocument.Revisions(x).Range
This = ActiveDocument.Revisions(x).Type
If This = 2 Then
myRev.Select
Selection.Font.StrikeThrough = True
End If
If This = 1 Then
myRev.Select
Selection.Font.Underline = True
End If
Next x

End Sub
 
C

Chip Orange

vsingler said:
Is there a way to "convert" text with track change's underline and
strikethrough formats to text with "regular" underline and strikethrough
format?

We have a document that has been edited with Track Changes turned on -
insertions show with underline and deletions show with strikethrough.The
document's author wants all readers (inside and outside the company) to
see
underlines and deletions formatted in two specific colors and formats but
doesn't want other users' track change preferences to influence the
display.
He also doesn't want to have to manually format the changes. We tried a
"find
& replace" to try to find text with underlined formatting, but it could
only
find the character formatting, not track changes' version of underlining.

Thanks, in advance. Any suggestions would be much appreciated.

And in addition to the macro you've already been given, here's a slight
variation that prevents you from having to do the document copy/paste:

Sub TypeAndStrike()
'
' Converts tracked revisions in the active document into "type and
strike" format.
' It removes all tracked revisions.
'
' written by Chip Orange.
'
Dim chgAdd As Word.Revision

' disable tracked revisions.
If ActiveDocument.Revisions.Count = 0 Then
MsgBox "There are no revisions in this document", vbOKOnly
Else
ActiveDocument.TrackRevisions = False

For Each chgAdd In ActiveDocument.Revisions
If chgAdd.Type = wdRevisionDelete Then
' It's a deletion, so make it strike through and then reject the
change (so the text isn't lost).
chgAdd.Range.Font.StrikeThrough = True
chgAdd.Reject
ElseIf chgAdd.Type = wdRevisionInsert Then
' It's an addition, so underline it.
chgAdd.Range.Font.Underline = wdUnderlineSingle
chgAdd.Accept
Else
MsgBox ("Unexpected Change Type Found"), vbOKOnly + vbCritical
chgAdd.Range.Select ' move insertion point
End If

Next chgAdd
End If


End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top