Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^4: Scan cells in Excel active worksheetby gauss76 (Scribe) |
on Apr 04, 2017 at 13:07 UTC ( [id://1186989]=note: print w/replies, xml ) | Need Help?? |
Many thanks huck for the answer, which works fine for .xls files with the code: my $FileName = "Excel Test File 1.xls"; my $parser = Spreadsheet::ParseExcel->new(); my $workbook = $parser->parse($FileName); my $Res1=get_active_sheet($workbook); But I have no idea how to get it to work with xlsx files, which, currently fails if I try the following: my $FileName = "Excel Test File 1A.xlsx"; my $parser = Spreadsheet::ParseXLSX->new(); my $workbook = $parser->parse($FileName); my $Res1=get_active_sheet($workbook); gauss76
In Section
Seekers of Perl Wisdom
|
|