Tip>Designer>Word Functions

Updating fields in Word

 

Article #:

0001

Contributor:

Joanne Irvine-Smith

GF version:

3.05

Applies to:

Fields in Microsoft Word

Last updated:

May 21, 2001

Description

Updates all the fields in an active Word document.

Explanation

Fields whose values contain variables or FillPoints do not automatically update after a fill. When the document is presented to a user, these fields seem to contain garbage values.

To force an update of the fields in an active Word document, insert the following function in a FillPoint at the end of a template:

WordApp.ActiveDocument.Fields.Update()

This is particularly useful to update a table of contents where the headings contain FillPoints.

 

NOTE

Only in-line fields are updated by this function. The fields in all headers and footers remain unaffected. See Updating fields in headers and footers.

Template Example