且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Excel中使用VBA从PowerPoint模板创建新的PowerPoint演示文稿

更新时间:2023-02-14 08:12:25

我认为,您应该将Untitled参数(Open方法)设置为true,以打开模板文件.

In my opinion, you should open your template file with the Untitled parameter (Open method) set to true.

objPPT.Presentations.Open FileName:="MyTemplate Macro.potm", Untitled:=msoTrue

根据 Presentations.Open方法(PowerPoint)

打开不带标题的文件.这等效于创建副本 文件.

Opens the file without a title. This is equivalent to creating a copy of the file.