我正在尝试运行我在Python中运行的VBA代码,如下所示:
import os
import glob
import win32com.client, sys
**vba** = "...\highest_shape.vb"
Application = win32com.client.Dispatch("PowerPoint.Application")
Application.Visible = True
Presentation = Application.Presentations.Open("...\Example.pptx")
for Slide in Presentation.Slides:
**vba**
Presentation.Save()
Application.Quit()
但我得到的错误是:
place to add errors