Table of contents
TOC
Collapse the table of content
Expand the table of content

Presentation.ApplyTemplate Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Applies a design template to the specified presentation.

Syntax

expression. ApplyTemplate( FileName )

expression A variable that represents a Presentation object.

Parameters

NameRequired/OptionalData TypeDescription
FileNameRequiredStringSpecifies the name of the design template.

Example

This example applies the "Professional" design template to the active presentation.

Application.ActivePresentation.ApplyTemplate _
    "c:\program files\microsoft office\templates" &; _
    "\presentation designs\professional.pot"

Note If you refer to an uninstalled presentation design template in a string, a run-time error is generated. The template is not installed automatically regardless of your FeatureInstall property setting. To use the ApplyTemplate method for a template that is not currently installed, you first must install the additional design templates. To do so, install the Additional Design Templates for PowerPoint by running the Microsoft Office installation program (click Add/Remove Programs or Programs and Features in Windows Control Panel).

See also

Concepts

Presentation Object

© 2018 Microsoft