ApplyTemplate Method

See Also         Example         Applies To

Applies a design template to the specified presentation.

Syntax

expression.ApplyTemplate(FileName)

expression   Required. An expression that returns a Presentation object.

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, select one in the New dialog box (File menu) or install the Additional Design Templates for PowerPoint by running the Microsoft Office 2000 installation program (available through the Add/Remove Programs icon in Windows Control Panel).