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

AutoUpdate

Returns or sets the way the link will be updated. Possible return 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.


ActivePresentation.Slides(1).Shapes(1).LinkFormat.BreakLink

SourceFullName

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"

Update

Updates the specified linked OLE object.

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


ActivePresentation.Slides(1).Shapes(1).LinkFormat.Update