Document.Kind (Word)

Gibt den Formattyp zurück, der von Microsoft Word bei der automatischen Formatierung des angegebenen Dokuments verwendet wird, oder legt diesen Formattyp fest. Mögliche Rückgabewerte sind wdDocumentEmail - E-Mail-Format, wdDocumentLetter - Briefformat, wdDocumentNotSpecified - Kein Format angegeben.


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