Share via


SourceFullName Property.SourceFullName Property

Publisher Developer Reference

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 SourceFullName Property 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.

Visual Basic for Applications
  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

See Also