Slide.ApplyTemplate method (PowerPoint)

Applies a design template to the specified slide.

Syntax

expression. ApplyTemplate( _FileName_ )

expression A variable that represents a Slide object.

Parameters

Name Required/Optional Data type Description
FileName Required String Specifies the name of the design template.

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

Slide Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.