简体   繁体   English

从Access VBA打开PowerPoint演示文稿的特定幻灯片

[英]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.

相关问题 使用 VBA 从 Excel 中打开 PowerPoint 演示文稿,然后将该演示文稿设置为变量 - Open a PowerPoint presentation from Excel with VBA and then set that presentation to a variable 从 PowerPoint 演示文稿(VBA、powerpoint)打开 Excel 文档 - Open Excel document from a powerpoint presentation (VBA, powerpoint) PowerPoint 2010从VBA打开“新建演示文稿”对话框 - PowerPoint 2010 Open New Presentation Dialog from VBA 使用VBA从Excel复制到打开的Powerpoint演示文稿 - Using VBA to copy from Excel to an open Powerpoint presentation 无法使用 VBA 从 Excel 打开现有的 PowerPoint 演示文稿 (2016) - Unable to open an existing PowerPoint Presentation (2016) from Excel using VBA 从Excel调用宏以打开PowerPoint演示文稿,插入幻灯片以及将范围复制到幻灯片有时会起作用,但会出错 - Macro called from Excel to Open a PowerPoint Presentation, Insert a Slide, and Copy Range to Slide works sometimes, errors others 打开 Powerpoint 演示文稿并更新 VBA 中的 Excel 链接 - Open a Powerpoint Presentation and update the Excel links in VBA 在 PowerPoint 演示文稿中复制幻灯片 - Duplicating a slide in PowerPoint presentation 在VBA powerpoint中如何将新幻灯片添加到空的演示文稿中 - in VBA powerpoint How to add a new slide to an empty presentation 通过VBA从Powerpoint打开特定的Excel工作表 - Open Particular Excel Worksheet from Powerpoint via VBA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM