Share via


Field Members (Word)

Represents a field. The Field object is a member of the Fields collection. The Fields collection represents the fields in a selection, range, or document.

Methods

Name

Description

Copy

Copies the specified field to the Clipboard.

Cut

Removes the specified field from the document and places it on the Clipboard.

Delete

Deletes the specified field.

DoClick

Clicks the specified field.

Select

Selects the specified field.

Unlink

Replaces the specified field with its most recent result.

Update

Updates the result of the field. Returns True if the field is updated successfully.

UpdateSource

Saves the changes made to the results of an INCLUDETEXT field back to the source document.

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

Code

Returns a Range object that represents a field's code. Read/write.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.

Data

Returns or sets data in an ADDIN field. Read/write String.

Index

Returns a Long that represents the position of an item in a collection. Read-only.

InlineShape

Returns an InlineShape object that represents the picture, OLE object, or ActiveX control that is the result of an INCLUDEPICTURE or EMBED field.

Kind

Returns the type of link for a Field object. Read-only WdFieldKind.

LinkFormat

Returns a LinkFormat object that represents the link options of the specified field. Read/only.

Locked

True if the specified field is locked. Read/write Boolean.

Next

Returns the next object in the collection. Read-only.

OLEFormat

Returns an OLEFormat object that represents the OLE characteristics (other than linking) for the specified field. Read-only.

Parent

Returns an Object that represents the parent object of the specified Field object.

Previous

Returns the previous object in the collection. Read-only.

Result

Returns a Range object that represents a field's result. Read/write.

ShowCodes

True if field codes are displayed for the specified field instead of field results. Read/write Boolean.

Type

Returns the field type. Read-only WdFieldType.