That makes sense, but that's not what's happening here. PHPExcel fails while loading.
I am using this code and it fails right when trying to load.
I am using this code and it fails right when trying to load.
$objReader->setLoadSheetsOnly( array("Sales Dashboard") );
$objPHPExcel = $objReader->load($filename); <-- failure
$objWorksheet = $objPHPExcel->getSheetByName("Sales Dashboard");
The 'PHPExcel->getSheet('9')' in the exception is something internal to the load() function.