Fields.Unlink Method

Word Developer Reference

Replaces all the fields in the Fields collection with their most recent results.

Syntax

expression.Unlink

expression   Required. A variable that represents a Fields collection.

Remarks

When you unlink a field, the current result is converted to text or a graphic and can no longer be updated automatically. Note that some fields—such as XE (Index Entry) fields and SEQ (Sequence) fields—cannot be unlinked.

Example

This example updates and unlinks all the fields in the first section in the active document.

Visual Basic for Applications
  With ActiveDocument.Sections(1).Range.Fields
    .Update
    .Unlink
End With

See Also