I am using PHPExcel to generate an xl using php. I am not loading an xl sheet but creating new sheets using
PHPExcel
$phpExcel = new PHPExcel(); $phpExcel-&g
Add below function into Excel.php class file:
function setActiveSheet($sheetnumber) { $this->objPHPExcel->setActiveSheetIndex($sheetnumber); }
then call that function like this :
$phpExcel->setActiveSheet(0);