UpdateSource Method

Applies To

Field object, Fields collection object.

Description

Saves the changes made to the results of an INCLUDETEXT field back to the source document.

Note The source document must be formatted as a Word document.

Syntax

expression.UpdateSource

expression Required. An expression that returns a Field or Fields object.

See Also

Update method.

Example

This example updates the INCLUDETEXT fields in the active document.

For Each aField In ActiveDocument.Fields
    If aField.Type = wdFieldIncludeText Then aField.UpdateSource
Next aField