Expand Minimize
1 out of 1 rated this helpful - Rate this topic

Document.ActiveTheme Property (Word)

Published: July 16, 2012

Returns the name of the active theme plus the theme formatting options for the specified document. Read-only String.

expression .ActiveTheme

expression A variable that represents a Document object.

The ActiveTheme property returns "none" if the document doesn't have an active theme. For an explanation of the value returned by this property, see the Name argument of the ApplyTheme method. The value returned by this property may not correspond to the theme's display name. To return a theme's display name, use the ActiveThemeDisplayName property.

This example applies a theme and then displays the name of the active theme plus the theme formatting options for the current document.

Sub CheckTheme() 
 ActiveDocument.ApplyTheme "artsy 100" 
 MsgBox ActiveDocument.ActiveTheme 
End Sub

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.