flow3rgirlz has asked for the wisdom of the Perl Monks concerning the following question:
When i run the similar code in Word, it does run the macro. But when i try in Visio, it just open the doc without running the macro. Can anyone help me what's wrong with my code. I try to search the running macro method for visio but i just couldnt find it. I really need some help here as i stuck in this quite a long time. Thanks for help.#!/usr/bin/perl use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Visio'; my $Visio = Win32::OLE->new('Visio.Application'); $MacroName = "Stencil"; #Running a macro $visiofile = "d:\\VisioProject\\StencilProject.vsd"; my $Doc = $Visio->{'Documents'}->Open($visiofile); $Visio->Run($MacroName); $Visio->Quit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: run visio macro in perl
by sflitman (Hermit) on Jan 08, 2009 at 04:57 UTC | |
by flow3rgirlz (Initiate) on Jan 08, 2009 at 05:55 UTC |