in reply to win32::OLE doubt.
The creation of your $Excel object is failing. You don't check for this or the *sometimes* informative OLE error message. In fact I expect the error message will be a less than helpful one in this case. GetActiveObject will fail if there is not an instance of Excel already running with an error message of '0'. Try:
my $Excel = Win32::OLE->new("Excel.Application" , sub { $_[0]->Quit } +) or die Win32::OLE::LastError; $Excel->{Visible} = 1;
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: win32::OLE doubt.
by Anonymous Monk on Aug 02, 2004 at 09:41 UTC |