Load Method

Microsoft PowerPoint Visual Basic

expression.Load(TemplateName, Index)

expression    Required. An expression that returns one of the objects in the Applies To list.

TemplateName   Required String. The path to the design template.

Index   Optional Long. The index number of the design template in the collection of design templates. The default is -1, which means the design template is added to the end of the list of designs in the presentation.

Example

This example add a design template to the beginning of the collection of design templates in the active presentation. This example assumes the "artsy.pot" template is located at the specified path.

Sub LoadDesign()
    ActivePresentation.Designs.Load TemplateName:="C:\Program Files\" & _
        "Microsoft Office\Templates\Presentation Designs\Balance.pot", Index:=1
End Sub