LinkFormat Object

Microsoft Word Visual Basic

Multiple objectsLinkFormat

Represents the linking characteristics for an OLE object or picture.

Using the LinkFormat Object

Use the LinkFormat property for a shape, inline shape, or field to return the LinkFormat object. The following example breaks the link for the first shape on the active document.

ActiveDocument.Shapes(1).LinkFormat.BreakLink
		

Remarks

Not all types of shapes, inline shapes, and fields can be linked to a source. Use the Type property for the Shape and InlineShape objects to determine whether a particular shape can be linked. The Type property for a Field object returns the type of field.

You can use both the Update method and the AutoUpdate property to update links. To return or set the full path for a particular link's source file, use the SourceFullName property.