标签: php phpexcel xlsx xls
我使用addExternalSheet创建新的Excel,但是背景色已更改。
$k = 0; foreach ($objPHPExcel->getSheetNames() as $sheetName){ $sheet = $objPHPExcel->getSheetByName($sheetName); $sheet->setTitle('Sheet'.$k); $newExcel->addExternalSheet($sheet); unset($sheet); $k ++; }
新的Excel,但是背景色已更改。 Source new