I have a macro written in powerpoint and i need to call it from my perl script, it is possible to call a macro from Excel using $Excel->Run("MYMACRONAMEHERE"); but using "Run" with powerpoint is giving the below error:
OLE exception from "Microsoft PowerPoint 2010": Application.Run : Invalid request. Sub or function not defined. Win32::OLE(0.1709) error 0x80048240 in METHOD/PROPERTYGET "Run"
below is the perl i am usign to call the macro from powerpoint:
my $filename = "<path>";
my $PptApp = Win32::OLE->GetActiveObject('PowerPoint.Application')|| Win32::OLE->new('PowerPoint.Application', 'Quit');
$PptApp->{Visible} = 1;
my $Presentation = $PptApp->Presentations->Open({FileName=>"$filename",ReadOnly=>0});
$PptApp->Run("macro_name");