Compartilhar via


Document.Kind Property

Word Developer Reference

Returns or sets the format type that Microsoft Office Word uses when automatically formatting the specified document. Read/write WdDocumentKind.

Syntax

expression.Kind

expression   Required. A variable that represents a Document object.

Example

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.

Visual Basic for Applications
  response = MsgBox("Is this document an e-mail message?", vbYesNo)
If response = vbYes Then
    ActiveDocument.Kind = wdDocumentEmail
    ActiveDocument.Content.AutoFormat
End If

See Also