Field Property

Applies To

InlineShape object.

Description

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

Note Use the Fields property to return the Fields collection.

See Also

Code property, Fields property.

Example

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

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