GetDefaultTheme Method
Returns a String that represents the name of the default theme plus the theme formatting options Microsoft Word uses for new documents, e-mail messages, or Web pages.
expression.GetDefaultTheme(DocumentType)
expression Required. An expression that returns one of the objects in the Applies To list.
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)
Applies to | Application Object
See Also | SetDefaultTheme Method | ThemeName Property