Compartilhar via


Document.ApplyDocumentTheme Method

Word Developer Reference

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

Name Required/Optional Data Type Description
FileName Required String The 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"

See Also