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
If you are directly manipulating the xml in workbook.xml
$replace = '#activeTab="\d"#i'; $with = 'activeTab="0"'; $newxmlfile=preg_replace($replace,$with,$newxmlfile); // force activetab to sheet 1