Document.Type (Word)

Gibt den Dokumenttyp zurück (Vorlage oder Dokument). Mögliche Rückgabewerte sind wdTypeDocument - Dokument, wdTypeFrameset - Frameset, wdTypeTemplate - Vorlage.


If ActiveDocument.ActiveWindow.Type = wdWindowDocument Then 
 ActiveDocument.Styles("Heading 1") _ 
 .ParagraphFormat.Alignment = wdAlignParagraphCenter 
End If