Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.35 KB

Word.Document.ActiveTheme.md

File metadata and controls

49 lines (29 loc) · 1.35 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Document.ActiveTheme property (Word)
vbawd10.chm158007836
vbawd10.chm158007836
Word.Document.ActiveTheme
2a68899f-8644-c9bb-1d9d-134b132eef91
06/08/2017
medium

Document.ActiveTheme property (Word)

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

Syntax

expression. ActiveTheme

expression A variable that represents a Document object.

Remarks

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.

Example

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

See also

Document Object

[!includeSupport and feedback]