Field Property

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.


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, _

MsgBox iShapeNew.Field.Code.Text

Applies to | InlineShape Object

See Also | Code Property | Fields Property