0
我使用以下代码打开新的PowerPoint演示文稿,但它提供了一个错误,我无法找出解决方案。通过Excel VBA打开现有PowerPoint文件时出现错误
strPresPath = "C:\Users\MAHE\Documents\template.ppt"
Set oPPTApp = CreateObject("PowerPoint.Application")
Set oPPTFile = oPPTApp.Presentations.Open(strPresPath)
和错误是
"Method 'open' of object 'Presentation' failed"
此外,如果任何人可以在添加新幻灯片PowerPoint演示将是很大的帮助帮助。