Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Charles Belov Charles Belov is offline
external usenet poster
 
Posts: 8
Default Converting track changes marking to new document content

I have a need to convert tracked changes (additions and deletions) to text
with actual double underlines (for additions) and strikethroughs (for
deletions). That is, if highlighting of tracked changes is turned off, I see
additions as having a double underline and deletions as having a single
strikethrough.

The issue is that the macro which converts Word to Adobe PDF will not tag
the document for accessibility if changes are highlighted, but the change
markings need to show in the resulting PDF.

Is there a quick way to do this in Word 2003 for Windows?

Charles Belov
SFMTA Webmaster
www.sfmta.com/webmaster



  #2   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Converting track changes marking to new document content

Run a macro containing the following code on a copy of the document when
Track Changes is turned off (otherwise the formatting changes that it makes
will be shown as revisions)

Dim arev As Revision
With ActiveDocument
For Each arev In .Revisions
If arev.Type = wdRevisionDelete Then
arev.Range.Font.StrikeThrough = True
arev.Reject
ElseIf arev.Type = wdRevisionInsert Then
arev.Range.Font.Underline = wdUnderlineDouble
arev.Accept
End If
Next arev
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Charles Belov" wrote in message
...
I have a need to convert tracked changes (additions and deletions) to text
with actual double underlines (for additions) and strikethroughs (for
deletions). That is, if highlighting of tracked changes is turned off, I
see
additions as having a double underline and deletions as having a single
strikethrough.

The issue is that the macro which converts Word to Adobe PDF will not tag
the document for accessibility if changes are highlighted, but the change
markings need to show in the resulting PDF.

Is there a quick way to do this in Word 2003 for Windows?

Charles Belov
SFMTA Webmaster
www.sfmta.com/webmaster




  #3   Report Post  
Posted to microsoft.public.word.newusers
Charles Belov Charles Belov is offline
external usenet poster
 
Posts: 8
Default Converting track changes marking to new document content

Thanks! I added the following line before the loop to turn Tracked Changes
off automatically when the macro is run:

ActiveDocument.TrackRevisions = False

The macro works great in the body text. However, it is missing the revisions
in the header and footer. I tried repeating the loop as follows:

With ActiveDocument
....
End With
With ActiveDocument.StoryRanges(wdPrimaryHeaderStory)
....
End With
With ActiveDocument.StoryRanges(wdPrimaryFooterStory)
....
End With

where ... is replaced by the For/Next loop below, but the macro still only
catches the changes in the body.

If I manually accept each change in the document, it accepts the header and
footer changes so it is not the case that Word itself is overlooking the
revisions. It appears to be an issue of the scope of the macro.

Still, even if I have to do the headers and footers manually, it is a big
improvement over having to do the whole document manually, so thank you very
much.

"Doug Robbins - Word MVP" wrote in message
...
Run a macro containing the following code on a copy of the document when
Track Changes is turned off (otherwise the formatting changes that it
makes will be shown as revisions)

Dim arev As Revision
With ActiveDocument
For Each arev In .Revisions
If arev.Type = wdRevisionDelete Then
arev.Range.Font.StrikeThrough = True
arev.Reject
ElseIf arev.Type = wdRevisionInsert Then
arev.Range.Font.Underline = wdUnderlineDouble
arev.Accept
End If
Next arev
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Charles Belov" wrote in message
...
I have a need to convert tracked changes (additions and deletions) to text
with actual double underlines (for additions) and strikethroughs (for
deletions). That is, if highlighting of tracked changes is turned off, I
see
additions as having a double underline and deletions as having a single
strikethrough.

The issue is that the macro which converts Word to Adobe PDF will not tag
the document for accessibility if changes are highlighted, but the change
markings need to show in the resulting PDF.

Is there a quick way to do this in Word 2003 for Windows?

Charles Belov
SFMTA Webmaster
www.sfmta.com/webmaster






  #4   Report Post  
Posted to microsoft.public.word.newusers
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Converting track changes marking to new document content

The following should also pick up changes to the headers and footers:

Dim arev As Revision
Dim i As Long, j As Long
With ActiveDocument
For Each arev In .Revisions
If arev.Type = wdRevisionDelete Then
arev.Range.Font.StrikeThrough = True
arev.Reject
ElseIf arev.Type = wdRevisionInsert Then
arev.Range.Font.Underline = wdUnderlineDouble
arev.Accept
End If
Next arev
For i = 1 To .Sections.Count
For j = 1 To .Sections(i).Headers.Count
With .Sections(i).Headers(j).Range
For Each arev In .Revisions
If arev.Type = wdRevisionDelete Then
arev.Range.Font.StrikeThrough = True
arev.Reject
ElseIf arev.Type = wdRevisionInsert Then
arev.Range.Font.Underline = wdUnderlineDouble
arev.Accept
End If
Next arev
End With
Next j
For j = 1 To .Sections(i).Footers.Count
With .Sections(i).Headers(j).Range
For Each arev In .Revisions
If arev.Type = wdRevisionDelete Then
arev.Range.Font.StrikeThrough = True
arev.Reject
ElseIf arev.Type = wdRevisionInsert Then
arev.Range.Font.Underline = wdUnderlineDouble
arev.Accept
End If
Next arev
End With
Next j
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Charles Belov" wrote in message
...
Thanks! I added the following line before the loop to turn Tracked Changes
off automatically when the macro is run:

ActiveDocument.TrackRevisions = False

The macro works great in the body text. However, it is missing the
revisions in the header and footer. I tried repeating the loop as follows:

With ActiveDocument
...
End With
With ActiveDocument.StoryRanges(wdPrimaryHeaderStory)
...
End With
With ActiveDocument.StoryRanges(wdPrimaryFooterStory)
...
End With

where ... is replaced by the For/Next loop below, but the macro still only
catches the changes in the body.

If I manually accept each change in the document, it accepts the header
and footer changes so it is not the case that Word itself is overlooking
the revisions. It appears to be an issue of the scope of the macro.

Still, even if I have to do the headers and footers manually, it is a big
improvement over having to do the whole document manually, so thank you
very much.

"Doug Robbins - Word MVP" wrote in message
...
Run a macro containing the following code on a copy of the document when
Track Changes is turned off (otherwise the formatting changes that it
makes will be shown as revisions)

Dim arev As Revision
With ActiveDocument
For Each arev In .Revisions
If arev.Type = wdRevisionDelete Then
arev.Range.Font.StrikeThrough = True
arev.Reject
ElseIf arev.Type = wdRevisionInsert Then
arev.Range.Font.Underline = wdUnderlineDouble
arev.Accept
End If
Next arev
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Charles Belov" wrote in message
...
I have a need to convert tracked changes (additions and deletions) to
text
with actual double underlines (for additions) and strikethroughs (for
deletions). That is, if highlighting of tracked changes is turned off, I
see
additions as having a double underline and deletions as having a single
strikethrough.

The issue is that the macro which converts Word to Adobe PDF will not
tag
the document for accessibility if changes are highlighted, but the
change
markings need to show in the resulting PDF.

Is there a quick way to do this in Word 2003 for Windows?

Charles Belov
SFMTA Webmaster
www.sfmta.com/webmaster







Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Track changes shown when converting to a PDF-file Jane Ugilt Microsoft Word Help 2 June 20th 06 01:24 PM
Copy revision text to new document and retain marking? Denzel New Users 3 September 7th 05 04:43 PM
Marking document for future replacement Elle Formatting Long Documents 1 May 4th 05 08:53 PM
Marking document for future replacement Elle Microsoft Word Help 1 May 4th 05 08:25 PM


All times are GMT +1. The time now is 02:55 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"