in reply to Windows; If (2003) MS Word or Excel are already executing?
I think this node might help you.
You need to try to get the active object before you try to start another Excel instance.
my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit');
|
|---|