Edit

LinkFormat.BreakLink method (Word)

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

Syntax

expression. BreakLink

expression Required. A variable that represents a 'LinkFormat' object.

Remarks

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

Example

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

Dim shapeLoop As Shape 
 
For Each shapeLoop In ActiveDocument.Shapes 
 With shapeLoop 
 If .Type = msoLinkedOLEObject Then 
 .LinkFormat.Update 
 .LinkFormat.BreakLink 
 End If 
 End With 
Next shapeLoop

See also

LinkFormat Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.