Document.ApplyDocumentTheme Method

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Applies a document theme to a document.

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.

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

ActiveDocument.ApplyDocumentTheme _ 
 "C:\Program Files\Microsoft Office\" & _ 
 "Document Themes 12\Verve.thmx"
Show: