![]() |
|
#2
|
||||
|
||||
|
Hi Welshie,
You could lock selected fields via Ctrl+F11 (Ctrl+Shift+F11 unlocks selected fields). Another approach is to accept only the tracked changes that apply to fields. Here's a macro that does just that: Code:
Sub AcceptTrackedFields()
'This sub accepts any tracked changes affecting fields
Application.ScreenUpdating = False
Dim Story As Range, oFld As Field, oRev As Revision, Rng As Range
With ActiveDocument
' Loop through all range objects and accept tracked changes on fields
For Each Story In .StoryRanges
For Each oRev In Story.Revisions
For Each oFld In oRev.Range.Fields
oFld.ShowCodes = True
Set Rng = oFld.Code
With Rng
.MoveEndUntil cset:=Chr(21), Count:=wdForward
.MoveEndUntil cset:=Chr(19), Count:=wdBackward
.End = .End + 1
.Start = .Start - 1
oFld.ShowCodes = False
.Revisions.AcceptAll
End With
Next
Next
Next
End With
Set Rng = Nothing
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| cross reference, save, update |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Cross references not updating correctly
|
CLWriter | Word | 4 | 04-03-2012 07:23 AM |
| MS Word cross-references? | entity022 | Word | 3 | 06-03-2010 06:37 AM |
Updating Caption References
|
Mindi Patterson | Word | 1 | 04-07-2010 09:53 PM |
| Formatting Cross References | TrevorS | Word | 0 | 02-27-2010 08:11 AM |
| Cross References | egcharles | Office | 0 | 04-19-2009 06:20 AM |