GetDefaultTheme Method

GetDefaultTheme Method

See Also         Example         Applies To

Returns the name of the default theme plus the theme formatting options Microsoft Word uses for new documents, e-mail messages, or Web pages.

Syntax

expression.GetDefaultTheme(DocumentType)

expression   Required. An expression that returns an Application object.

DocumentType   Required Long. The type of new document for which you want to retrieve the default theme name. Can be one of the following WdDocumentMedium constants: wdDocument, wdEmailMessage, or wdWebPage.

Remarks

You can also use the ThemeName property to return and set the default theme for new e-mail messages.