ActiveThemeDisplayName Property
Collapse the table of content
Expand the table of content

Document.ActiveThemeDisplayName Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns the display name of the active theme for the specified document. Read-only String.

expression .ActiveThemeDisplayName

expression A variable that represents a Document object.

The ActiveThemeDisplayName property returns "none" if the document doesn't have an active theme. A theme's display name is the name that appears in the Theme dialog box. This name may not correspond to the string you would use to set a default theme or to apply a theme to a document.

This example returns the display name of the active theme for the current document.

Sub DisplayThemeName() 
 ActiveDocument.ApplyTheme "artsy 100" 
 MsgBox ActiveDocument.ActiveThemeDisplayName 
End Sub
© 2016 Microsoft