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
In reply to run visio macro in perl by flow3rgirlz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |