View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default missing and double figures in cross-reference list

Hi patti,

PamC has already given you an overview of the cause of the problem. Here's a macro that accepts all the tracked changes for fields
(eg cross-references, page #s, etc) in the document:

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

--
Cheers
macropod
[MVP - Microsoft Word]


"patti" wrote in message ...
I am working with a doc that is about 15MB. This happens repeatably. This
issue happens in both the compatibility mode and Word 2007, both doc and docx
formats. I have installed sp1 for Office.

I do a fair amount of editing, including inserting new figures with
captions, and updating all links. I have track changes on. After a while,
when trying to insert a cross-reference, the list of figure references to
insert becomes corrupt. Every other figure is missing from the list and the
references that are there have double entries. The only way to fix this
problem is to accept all changes.

Anyone else happen to see this problem and know of any behaviour to avoid to
stop this problem from occuring? Seems as if it is bumping into some kind of
limit or overflowing some variable.