Shape.LinkFormat property (Word)

Returns a LinkFormat object that represents the link options of a shape that is linked to a file. Read/only.

Syntax

expression. LinkFormat

expression A variable that represents a Shape object.

Example

This example inserts a graphic as an inline shape (using an INCLUDEPICTURE field) and then displays the source name (Tiles.bmp).

Set iShape = ActiveDocument.InlineShapes _ 
 .AddPicture(FileName:="C:\windows\Tiles.bmp", _ 
 LinkToFile:=True, SaveWithDocument:=False, _ 
 Range:=Selection.Range) 
MsgBox iShape.LinkFormat.SourceName

See also

Shape Object

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.