Compartilhar via


LinkFormat.BreakLink Method

Word Developer Reference

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.

Visual Basic for Applications
  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