Cross-Reference to inside a Table

D

dgold82

I am making a form and cross referencing is working fine for me except to
fields within a table. I have to right click and click "update field" for it
to work.

Why is Word auto updating everywhere else in the document except within the
tables? How can I fix this?

Thanks!
 
D

dgold82

I found a solution in a macro that I have the form field run on exit. Below
is the code:

Sub UpdateAllFields()

Dim aStory As Range
Dim aField As Field

For Each aStory In ActiveDocument.StoryRanges
For Each aField In aStory.Fields
aField.Update
Next aField
Next aStory

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