Class LinkFormat (PowerPoint VBA)

Contains properties and methods that apply to linked OLE objects, linked pictures, and IIRC media objects.


To use a LinkFormat class variable it first needs to be instantiated, for example

Dim lft as LinkFormat
Set lft = ActiveWindow.RangeFromPoint.LinkFormat

The following procedures can be used to set variables of type LinkFormat: Shape.LinkFormat and ShapeRange.LinkFormat


Returns or sets the way the link will be updated.

Possible Values are ppUpdateOptionAutomatic - Link will be updated each time the presentation is opened or the source file changes, ppUpdateOptionManual - Link will be updated only when the user specifically asks to update the presentation, ppUpdateOptionMixed - Mixed.

The value of the AutoUpdate property can be one of these PpUpdateOption constants.

ActivePresentation.Slides(1).Shapes(1).LinkFormat.AutoUpdate = ppUpdateOptionAutomatic


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



Returns the parent object for the specified object.


Returns or sets the name and path of the source file for the linked OLE object.

ActivePresentation.Slides(1).Shapes(1).LinkFormat.SourceFullName =  "c:\my documents\wordtest.doc"


Updates the specified linked OLE object.

To update all the links in a presentation at once, use the UpdateLinks method.