Document.Kind Property (Word)

Office 2013 and later

Contribute to this content

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

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

expression .Kind

expression Required. A variable that represents a 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 e-mail message?", vbYesNo) 
If response = vbYes Then 
 ActiveDocument.Kind = wdDocumentEmail 
End If