SourcePath Property

Applies To

LinkFormat object.

Description

Returns the path of the source file for the specified linked OLE object, picture, or field. Read-only String.

Note This property doesn't return the name of the source file.

See Also

SourceFullName property, SourceName property.

Example

This example returns the path and name of the source file for any shapes on the active document that are linked OLE objects.

For each s in ActiveDocument.Shapes
    If s.Type = msoLinkedOLEObject Then
         Msgbox s.LinkFormat.SourcePath & "\" & s.LinkFormat.SourceName
    End If
Next s