返回 Design 对象,该对象代表一个已加载到指定演示文稿母版列表中的设计。
expression.Load(TemplateName, Index)
expression 必选。该表达式返回“应用于”列表中的对象之一。
TemplateName 必选。String 类型。设计模板的路径。
Index 可选。Long 类型。设计模板在设计模板集合中的索引号。默认值为 -1,表示将设计模板添加到演示文稿中模板列表的末尾。
本示例将一个设计模板添加到当前演示文稿设计模板集合的开头。本示例假设“artsy.pot”模板位于指定路径。
Sub LoadDesign()
ActivePresentation.Designs.Load TemplateName:="C:\Program Files\" & _
"Microsoft Office\Templates\Presentation Designs\Balance.pot", Index:=1
End Sub