This documentation is archived and is not being maintained.

_Document.ApplyTheme Method 

Applies a theme to an open document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in

Dim Name As String
Dim _Document1 As _Document

void ApplyTheme(
	[In] string Name
public void ApplyTheme(
	/*in*/System.String Name
function ApplyTheme(
	 Name : String



Required String. The name of the theme plus any theme formatting options you want to apply. The format of this string is "theme nnn" where theme and nnn are defined as follows:




The name of the folder that contains the data for the requested theme. (The default location for theme data folders is C:\Program Files\Common Files\Microsoft Shared\Themes.) You must use the folder name for the theme rather than the display name that appears in the Theme dialog box (Theme command, Format menu).


A three-digit string that indicates which theme formatting options to activate (1 to activate, 0 to deactivate). The digits correspond to the Vivid Colors, Active Graphics, and Background Image check boxes in the Theme dialog box (Theme command, Format menu). If this string is omitted, the default value for nnn is "011" (Active Graphics and Background Image are activated).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms