# lots of code assumed before this line my $oWkS = $oBook->{Worksheet}[$sheet] or die "sheet doesn't exist";