Thank you for the reply.
By the way, can you provide a sample of how to use the copy() method?
Currently, here is my code:
$objPHPExcel = new PHPExcel();
$ws_name = "Worksheet_";
$i=0;while ($i < 2) {
$objWorksheet = new PHPExcel_Worksheet($objPHPExcel);
$objPHPExcel->addSheet($objWorksheet);
$objWorksheet->setTitle($ws_name.$i);
$objWorksheet->setCellValue('A1', 'Something_'.$i);$i++; //Assuming that this is the data from the database
}
$objPHPExcel->removeSheetByIndex(0);
I do not know how to load the template through the copy() method.