LinkFormat.SourceFullName property (Publisher)
Returns a String that represents the path and name of the source file for the specified linked OLE object, picture, or field. Read-only.
Syntax
expression.SourceFullName
expression A variable that represents a LinkFormat object.
Return value
String
Example
This example displays the path and file name of the source file for all embedded OLE shapes on the first page of the active publication.
Sub DisplaySourceName()
Dim shp As Shape
For Each shp In ActiveDocument.Pages(1).Shapes
If shp.Type = pbEmbeddedOLEObject Then
With shp.LinkFormat
MsgBox .SourceFullName
End With
End If
Next
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.