katsomo has asked for the wisdom of the Perl Monks concerning the following question:

hi monks, i am trying to call Macros from my perl script using win32:OLE...i am able to call a macro stored in an Excel sheet...can any one give any tips on how diffrent is it from calling a Macro in Outlook 2010...?
my $outlook; $outlook = Win32::OLE->new('Outlook.Application'); die unless $outlook; $outlook->Session->Logon; $outlook->run( "Macro1" );
i tried the above code but its not running the macro in outlook.

Replies are listed 'Best First'.
Re: run macro in outlook (dom)
by Anonymous Monk on Jun 03, 2013 at 09:35 UTC

    can any one give any tips on how diffrent is it from calling a Macro in Outlook 2010...?

    Sure, excel has a DOM, outlook has a DOM, look at the DOM

    excel DOM has run method, does outlook DOM have run method? Look on MSDN at outlook DOM documentation

    See also Win32/OLE related tutorials/examples/resources but don't ask me to write code, I don't have outlook