in reply to List of worksheets in an Excel workbook
my $Book = $Excel->Workbooks->Open( $filename ); # open the file my $sheetcount = $Book->Worksheets->Count; foreach my $i (1 .. $sheetcount) { printf "Sheet #%d: %s\n", $i, $Book->Worksheets($i)->Name; }
|
|---|