This documentation is archived and is not being maintained.

Document.ApplyDocumentTheme Method

Office 2007
Applies a document theme to a document.

Version Information
 Version Added:  Word 2007

Syntax

expression.ApplyDocumentTheme(FileName)

expression   An expression that returns a Document object.

Parameters

NameRequired/OptionalData TypeDescription
FileNameRequiredStringThe path and file name of the theme to apply.

Example

The following example applies the Verve document theme to the active document.

Visual Basic for Applications
ActiveDocument.ApplyDocumentTheme _
    "C:\Program Files\Microsoft Office\" & _
    "Document Themes 12\Verve.thmx"



Show: