missing and double figures in cross-reference list

P

patti

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.
 
P

PamC via OfficeKB.com

This happens to me. The list is not corrupt (that is, there is no software
error). It is just that Word does not renumber until changes have been
accepted--as you have discovered. To prevent the problem, I avoid inserting
caption numbers while track changes is on, or to solve it I accept the change
on each affected caption number (field). That way I get a reliable list in
the cross reference dialog.

Does anyone have a better solution?

PamC
 
M

macropod

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top