InlineShape.Field property (Word)

Returns a Field object that represents the field associated with the specified inline shape. Read-only.

Syntax

expression. Field

expression A variable that represents an 'InlineShape' object.

Remarks

Use the Fields property to return the Fields collection.

Example

This example inserts a graphic as an inline shape (using an INCLUDEPICTURE field) and then displays the shape's field code.

Dim iShapeNew As InlineShape 
 
Set iShapeNew = _ 
 ActiveDocument.InlineShapes _ 
 .AddPicture(FileName:="C:\Windows\Tiles.bmp", _ 
 LinkToFile:=True, SaveWithDocument:=False, _ 
 Range:=Selection.Range) 
 
MsgBox iShapeNew.Field.Code.Text

See also

InlineShape Object