Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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"



Community Additions

Show:
© 2014 Microsoft