다음을 통해 공유


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

Concepts

LinkFormat Object Members

LinkFormat Object