【发布时间】:2015-10-14 04:17:15
【问题描述】:
我必须将大量 Excel 图表发布到特定的 PowerPoint 文档中,并且我正在 Excel VBA 中构建一个宏来为我做这件事。
我能够正确打开要更新的 PowerPoint 演示文稿,但是我不知道如何将刚刚打开的演示文稿设置为名为 MyPresentation 的变量。
Dim myPresentation As PowerPoint.Presentation
Dim PowerPointApp As PowerPoint.Application
PowerPointApp.Presentations.Open Filename:="obscured filepath and name"`
显然还有一些额外的代码,但我正在尝试将我刚刚在第 3 行打开的演示文稿设置为 MyPresentation 变量,以便我可以引用我刚刚打开的文档。
【问题讨论】:
标签: excel vba powerpoint