Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 1.67 KB

PowerPoint.Presentation.ApplyTemplate.md

File metadata and controls

55 lines (32 loc) · 1.67 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.ApplyTemplate method (PowerPoint)
vbapp10.chm583007
vbapp10.chm583007
PowerPoint.Presentation.ApplyTemplate
0340ab20-ae21-996b-63c2-4c0b922dec6e
06/08/2017
medium

Presentation.ApplyTemplate method (PowerPoint)

Applies a design template to the specified presentation.

Syntax

expression. ApplyTemplate( _FileName_ )

expression A variable that represents a Presentation object.

Parameters

Name Required/Optional Data type Description
FileName Required String Specifies 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

Presentation Object

[!includeSupport and feedback]