SourceName Property
Applies To
LinkFormat object.
Description
Returns the name of the source file for the specified linked OLE object, picture, or field. Read-only String.
Note This property doesn't return the path for the source file.
See Also
SourceFullName property, SourcePath 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