BreakLink 方法 (Word) LinkFormatLinkFormat.BreakLink method (Word)

断开源文件与指定 OLE 对象、图片或链接域之间的链接。Breaks the link between the source file and the specified OLE object, picture, or linked field.


expression.expression. BreakLink

_表达式_是必需的。expression Required. 一个代表 "LinkFormat" 对象的变量。A variable that represents a 'LinkFormat' object.


使用该方法后,在源文件发生变化的情况下,链接结果不会自动更新。After you use this method, the link result won't be automatically updated if the source file is changed.


本示例更新活动文档中所有的 OLE 对象,然后断开链接。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 
 End If 
 End With 
Next shapeLoop

另请参阅See also

LinkFormat 对象LinkFormat Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.