in reply to OLE - Getting all rows from Excel
This should give you the total number of rows with information. In VBA I would be checking for a Null value rather than an empty string, but I'm not sure how to do that in Perl, and I believe this should work (untested).my $test; my $totalrows = 1; for ($test=$worksheet->Range("A$totalrows:A$totalrows")->('Value');$te +st ne "";$totalrows++){ $test=$worksheet->Range("A$totalrows:A$totalrows")->('Value'); } $totalrows--;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: OLE - Getting all rows from Excel
by raflach (Pilgrim) on May 10, 2000 at 00:12 UTC |