我似乎无法在PowerPoint Mac 2011的Applescript中调用或执行VBA子程序。这适用于Office powerpoint 2004
这是我的代码:
on run {paramVBAScript}
with timeout of 5 seconds
tell application "System Events"
if not (exists process "Microsoft PowerPoint") then return ""
end tell
tell application "Microsoft PowerPoint"
set vbaScript to the command bar control "XXXXX" of command bar ¬
"Help" of command bar "Menu Bar"
set parameter of vbaScript to paramVBAScript
**execute vbaScript**
set retValue to parameter of vbaScript
return retValue
end tell
end timeout
Execute Vbascript is not working
end run
我哪里可以出错?
答案 0 :(得分:1)
Microsoft在v2004之后的Mac版Office中停止了对VBA的支持。你需要将你的VBA移植到Applescript才能做你想做的事。