Fields Members (Word)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Methods

Name

Description

Add

Adds a Field object to the Fields collection. Returns the Field object at the specified range.

Item

Returns an individual Field object in a collection.

ToggleShowCodes

Switches the display of the fields between field codes and field results. Use the ShowCodes property to control the display of an individual field.

Unlink

Replaces all the fields in the Fields collection with their most recent results.

Update

Updates the result of the fields object.

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.

Count

Returns a Long that represents the number of fields in the collection. Read-only.

Creator

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

Locked

True if all fields in the Fields collection are locked. Read/write Long.

Parent

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