in reply to run visio macro in perl

I think you need to know the OLE methods defined by $Visio. I found this article which shows Visual Basic code accessing the same object. Perhaps Run is like Open, you have to run it on the {'Documents'} hash? I don't have Visio so I'm not sure. Microsoft tends to think of macros as being associated with the document tree, I've noticed.

(Major digression: why not use a better and more cross-platform diagramming app like Inkscape? Does SVG, which has CPAN modules to directly manipulate, much more powerful and Perlish!)

HTH, SSF

Replies are listed 'Best First'.
Re^2: run visio macro in perl
by flow3rgirlz (Initiate) on Jan 08, 2009 at 05:55 UTC
    Thanks for your reply. I found another method which automatically runs the macro once you open the Visio file. So, basically rather than run the macro from perl, i just open the visio file from perl and it will automatically runs the macro as well.