Share via


Designs.Load Method (PowerPoint)

Returns a Design object that represents a design loaded into the master list of the specified presentation.

Syntax

expression .Load(TemplateName, Index)

expression A variable that represents a Designs object.

Parameters

Name

Required/Optional

Data Type

Description

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.

Return Value

Design

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

See Also

Concepts

Designs Object

Designs Object Members