当我尝试在顶部打开PPT,而不是创建一个新的PPT(这很好用!),我得到以下错误
$objPPT = _PPT_PowerPointApp()
If @error Then
MsgBox(0,"","No PowerPoint available")
Exit
EndIf
$PresInterface = _PPT_CreatePresentation($objPPT) ;Get presentation
interface$objPres = _PPT_PresentationOpen($PresInterface,"C:\Users\s.mailappan\Desktop\3G-Reports\MyAutoItPresentation.ppt") ;Add a new presentation

发布于 2013-07-30 00:28:59
要打开现有的PPT,需要删除原始代码中的以下代码行。
$PresInterface = _PPT_CreatePresentation($objPPT) ;Get presentation 这使得下面的代码可以工作。
$objPPT = _PPT_PowerPointApp()
If @error Then
MsgBox(0,"","No PowerPoint available")
Exit
EndIf
$objPres = _PPT_PresentationOpen($objPPT,"C:\Users\s.mailappan\Desktop\3G-Reports\MyAutoItPresentation.ppt") ;Add a new presentationhttps://stackoverflow.com/questions/17751774
复制相似问题