Share via


Kind Property

Kind property as it applies to the Document object.

WdDocumentKind

WdDocumentKind can be one of these WdDocumentKind constants.
wdDocumentEmail
wdDocumentNotSpecified
wdDocumentLetter

expression.Kind

expression Required. An expression that returns a Document object.

Kind property as it applies to the Field object.

WdFieldKind

WdFieldKind can be one of these WdFieldKind constants.
wdFieldKindCold A field that doesn't have a result, for example, an Index Entry (XE), Table of Contents Entry (TC), or Private field.
wdFieldKindHot A field that's automatically updated each time it's displayed or each time the page is reformatted, but which can also be manually updated (for example, INCLUDEPICTURE or FORMDROPDOWN).
wdFieldKindNone An invalid field (for example, a pair of field characters with nothing inside).
wdFieldKindWarm A field that can be updated and has a result. This type includes fields that are automatically updated when the source changes as well as fields that can be manually updated (for example, DATE or INCLUDETEXT).

expression.Kind

expression Required. An expression that returns a Field object.

Example

As it applies to the Document object.

This example asks the user whether the active document is an e-mail message. If the response is Yes, the document is formatted as an e-mail message.

response = MsgBox("Is this document an email message?", vbYesNo)
If response = vbYes Then
    ActiveDocument.Kind = wdDocumentEmail
    ActiveDocument.Content.AutoFormat
End If

As it applies to the Field object.

This example updates all warm link fields in the active document.

For Each aField In ActiveDocument.Fields
    If aField.Kind = wdFieldKindWarm Then aField.Update
Next aField

Applies to | Document Object | Field Object

See Also | AutoFormat Property | Field Object | Update Method