Ice-Tea-Jan
06-28-2009, 07:41 AM
:help
The code below successfully converts tracked changes into "regular text" as follows: sets insertions with a wavy underlines, and set deletions with a strikethrough.
It works beautifully, however, I need to loop it through all other stories in a document because the documents I receive vary, and could have footnotes, different types of headers and footers, text boxes, etc.
I have tried MANY codes to loop this code through different stories, and have been unsuccessful.:banghead:
Can somebody show me how to loop it through any story other than the main text story? From there, I can certainly duplicate it for all the other remaining stories in a document.
Here is the main code that I am trying to loop through all other stories:
Dim myrev As Revision
ActiveDocument.TrackRevisions = False
For Each myrev In ActiveDocument.Revisions
If myrev.Type = wdRevisionDelete Then
myrev.Range.Font.StrikeThrough = True
myrev.Range.Revisions.RejectAll
Else
myrev.Range.Underline = wdUnderlineWavy
myrev.Range.Revisions.AcceptAll
End If
Next
As you may have guessed I am a newbie, but know enough code to get me into trouble!:dunno
Thanking You,
Janet
The code below successfully converts tracked changes into "regular text" as follows: sets insertions with a wavy underlines, and set deletions with a strikethrough.
It works beautifully, however, I need to loop it through all other stories in a document because the documents I receive vary, and could have footnotes, different types of headers and footers, text boxes, etc.
I have tried MANY codes to loop this code through different stories, and have been unsuccessful.:banghead:
Can somebody show me how to loop it through any story other than the main text story? From there, I can certainly duplicate it for all the other remaining stories in a document.
Here is the main code that I am trying to loop through all other stories:
Dim myrev As Revision
ActiveDocument.TrackRevisions = False
For Each myrev In ActiveDocument.Revisions
If myrev.Type = wdRevisionDelete Then
myrev.Range.Font.StrikeThrough = True
myrev.Range.Revisions.RejectAll
Else
myrev.Range.Underline = wdUnderlineWavy
myrev.Range.Revisions.AcceptAll
End If
Next
As you may have guessed I am a newbie, but know enough code to get me into trouble!:dunno
Thanking You,
Janet