R
Rhonda from Western Australia
My knowledge of macros is limited. I found one that fixes a problem I'm
having with Track Changes affecting cross references
(http://www.pcreview.co.uk/forums/thread-3715892.php) that seems to work
really well.
However, after running it I end up in the footer (where there's a field) and
in Draft mode, and I don't know what I have to add to the macro to close the
footer and return me to the Print Layout view and where I was when I ran the
macro.
Here's the macro from that website:
Sub AcceptTrackedFields()
Dim oRange As Word.Range ' All Range objects - includes ranges in the body,
headers, footers & shapes
Dim Fld As Field ' Field Object
With ActiveDocument
' Loop through all range objects and accept tracked changes on fields
For Each oRange In .StoryRanges
Do
For Each Fld In oRange.Fields
Fld.Select
Selection.Range.Revisions.AcceptAll
Next
Set oRange = oRange.NextStoryRange
Loop Until oRange Is Nothing
Next
End With
End Sub
What do I need to include to:
* close the footer
* return me to my original location (or even the beginning of the document)
* return to Print Layout view
I'm using Word 2007.
Thanks!
having with Track Changes affecting cross references
(http://www.pcreview.co.uk/forums/thread-3715892.php) that seems to work
really well.
However, after running it I end up in the footer (where there's a field) and
in Draft mode, and I don't know what I have to add to the macro to close the
footer and return me to the Print Layout view and where I was when I ran the
macro.
Here's the macro from that website:
Sub AcceptTrackedFields()
Dim oRange As Word.Range ' All Range objects - includes ranges in the body,
headers, footers & shapes
Dim Fld As Field ' Field Object
With ActiveDocument
' Loop through all range objects and accept tracked changes on fields
For Each oRange In .StoryRanges
Do
For Each Fld In oRange.Fields
Fld.Select
Selection.Range.Revisions.AcceptAll
Next
Set oRange = oRange.NextStoryRange
Loop Until oRange Is Nothing
Next
End With
End Sub
What do I need to include to:
* close the footer
* return me to my original location (or even the beginning of the document)
* return to Print Layout view
I'm using Word 2007.
Thanks!