BreakLink Method

Applies To

LinkFormat object.

Description

Breaks the link between the source file and the specified OLE object, picture, or linked field.

Note After you use this method, the link result won't be automatically updated if the source file is changed.

Syntax

expression.BreakLink

expression Required. An expression that returns a LinkFormat object.

Example

This example updates and then breaks the links to any shapes that are linked OLE objects in the active document.

For Each s In ActiveDocument.Shapes
    If s.Type = msoLinkedOLEObject Then
        s.LinkFormat.Update
        s.LinkFormat.BreakLink
    End If
Next s