GetDefaultTheme Method

Microsoft Word Visual Basic

expression.GetDefaultTheme(DocumentType)

expression    Required. An expression that returns one of the objects in the Applies To list.

DocumentType   Required The type of new document for which you want to retrieve the default theme name. WdDocumentMedium.

WdDocumentMedium can be one of these WdDocumentMedium constants.
wdEmailMessage
wdDocument
wdWebPage

Remarks

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

Example

This example displays the name of the theme Word uses for new Web pages.

MsgBox Application.GetDefaultTheme(wdWebPage)