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
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.