Невозможно вызвать или выполнить подпрограмму VBA в Applescript для PowerPoint Mac 2011 - PullRequest
0 голосов
/ 19 июля 2011

Мне кажется, что я не могу вызвать или выполнить сабвуфер VBA в Applescript для PowerPoint Mac 2011. Это отлично работает для 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

Гдемогу я пойти не так?

1 Ответ

1 голос
/ 19 июля 2011

Microsoft прекратила поддержку VBA в Mac версии Office после v2004.Вам нужно перенести VBA на Applescript, чтобы делать то, что вы хотите.

...