![](/img/trans.png)
[英]Open a PowerPoint presentation from Excel with VBA and then set that presentation to a variable
[英]open particular slide of powerpoint presentation from access vba
當路徑存儲在變量“鏈接”中時,當前正在Access VBA中使用以下代碼打開演示文稿。
Dim pptPres As PowerPoint.Presentation
Dim pptApp As PowerPoint.Application
Set pptApp = CreateObject("Powerpoint.Application")
Set pptPres = pptApp.Presentations.Open(link)
它工作正常,但實際上我需要打開演示文稿的幻燈片3。 有什么方法可以對幻燈片編號進行編程以使其自動打開?
提前致謝。
以下應該為您工作:
pptPres.Slides(3).Select()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.