Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Great Monks,
I m getting error as
Can't call method "Open" on an undefined value at gui.pl line 45.
use Win32::OLE::Const 'Microsoft Excel'; my $Excel = Win32::OLE->GetActiveObject('Excel.Application'); ####$pet is some.xls file##### my $Book = $Excel->Workbooks->Open($pet) or die ("not opened $pet\n"); + my $Sheet = $Book->WorkSheets("Sheet1");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: win32::OLE doubt.
by tachyon (Chancellor) on Aug 02, 2004 at 09:18 UTC | |
by Anonymous Monk on Aug 02, 2004 at 09:41 UTC |