[英]open particular slide of powerpoint presentation from access vba
I am currently using the following code in Access VBA to open a presentation when the path is stored in a variable "link". 当路径存储在变量“链接”中时,当前正在Access VBA中使用以下代码打开演示文稿。
Dim pptPres As PowerPoint.Presentation
Dim pptApp As PowerPoint.Application
Set pptApp = CreateObject("Powerpoint.Application")
Set pptPres = pptApp.Presentations.Open(link)
It works fine, but I actually need the Slide 3 of the presentation to open. 它工作正常,但实际上我需要打开演示文稿的幻灯片3。 Is there any way I can program the Slide Number to open automatically? 有什么方法可以对幻灯片编号进行编程以使其自动打开?
Thanks in advance. 提前致谢。
以下应该为您工作:
pptPres.Slides(3).Select()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.