E
ecrichlow
Okay,
So I've written this wonderful set of VBA code in PowerPoint that
does exactly what I need it to do. It runs a toolbar that I added and I
use a supplemental Cocoa application to call functions within the
PowerPoint VBA code (using Applescript) to perform some needed
functionality.
Everything works great.
So, final step, save the presentation with the VBA code as a
PowerPoint Add-In, and install it.
Some things stopped working.
Namely, places where I call VBA functions using Applescript: do
Visual Basic ("Call function"), don't work anymore. Applescript tells
me that "Call function" doesn't understand the "do Visual Basic"
message.
My best guess is that once I turn the presentation into an add-in,
it's no longer VBA code, and thus the "do Visual Basic" command in
Applescript is no longer applicable. Perhaps that or, the VBA code is
specific to the presentation it was authored in, but the add-in is
generic to the Application, and thus can apply to any presentation, and
perhaps "do Visual Basic" implicitly references a specific
presentation, so the add-in code is out of its range.
Either way, I need a way to call the functions I wrote from
Applescript (or by any other possible means) through a secondary
application.
Is it even possible?
....Thanx...
....Eric...
So I've written this wonderful set of VBA code in PowerPoint that
does exactly what I need it to do. It runs a toolbar that I added and I
use a supplemental Cocoa application to call functions within the
PowerPoint VBA code (using Applescript) to perform some needed
functionality.
Everything works great.
So, final step, save the presentation with the VBA code as a
PowerPoint Add-In, and install it.
Some things stopped working.
Namely, places where I call VBA functions using Applescript: do
Visual Basic ("Call function"), don't work anymore. Applescript tells
me that "Call function" doesn't understand the "do Visual Basic"
message.
My best guess is that once I turn the presentation into an add-in,
it's no longer VBA code, and thus the "do Visual Basic" command in
Applescript is no longer applicable. Perhaps that or, the VBA code is
specific to the presentation it was authored in, but the add-in is
generic to the Application, and thus can apply to any presentation, and
perhaps "do Visual Basic" implicitly references a specific
presentation, so the add-in code is out of its range.
Either way, I need a way to call the functions I wrote from
Applescript (or by any other possible means) through a secondary
application.
Is it even possible?
....Thanx...
....Eric...