Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.03 KB

Word.LinkFormat.SourceName.md

File metadata and controls

51 lines (31 loc) · 1.03 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
LinkFormat.SourceName property (Word)
vbawd10.chm154206212
vbawd10.chm154206212
Word.LinkFormat.SourceName
1befe8a0-29f4-21cc-e2cb-03ce018db620
06/08/2017
medium

LinkFormat.SourceName property (Word)

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

Syntax

expression.SourceName

expression An expression that returns a 'LinkFormat' object.

Remarks

This property doesn't return the path for the source file.

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

See also

LinkFormat Object

[!includeSupport and feedback]