Share via


Unlink Method [Publisher 2003 VBA Language Reference]

Replaces the specified field or Fields collection with with their most recent results.

expression.Unlink

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

When you unlink a field, its current result is converted to text or a graphic and can no longer be updated automatically.

Example

This example unlinks the first field in shape one on the first page of the active publication.

ActiveDocument.Pages(1).Shapes(1) _
    .TextFrame.TextRange.Fields(1).Unlink

This example updates and unlinks all the fields in shape one on the first page of the active publication.

With ActiveDocument.Pages(1).Shapes(1) _
        .TextFrame.TextRange.Fields
    .Update
    .Unlink
End With

Applies to | Field Object | Fields Collection