in reply to OLE - Getting all rows from Excel
/t0masuse Win32::OLE; $excel = Win32::OLE->new("Excel.Application"); $excel->{Visible} = 1; $workbook = $excel->Workbooks->Open("test.xls"); $sheet = $workbook->Worksheets(1); $everything=$sheet->UsedRange()->{Value}; for (@$everything) { for (@$_) { print defined($_) ? "$_|" : "<undef>|"; } print "\n"; } $excel->Quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: OLE - Getting all rows from Excel
by httptech (Chaplain) on May 10, 2000 at 15:28 UTC | |
by t0mas (Priest) on May 11, 2000 at 14:02 UTC | |
by httptech (Chaplain) on May 11, 2000 at 16:08 UTC |