我有这个代码
$objPHPExcel = new PHPExcel();
$objPHPExcel->setActiveSheetIndex(0);
$LastRow = $objPHPExcel->setActiveSheetIndex(0)->getHighestRow();
$row = $LastRow + 1;
$objPHPExcel->getActiveSheet()->SetCellValue('A'.$row, $_POST['name']);
$objPHPExcel->getActiveSheet()->SetCellValue('B'.$row, $_POST['email'] );
$objPHPExcel->getActiveSheet()->SetCellValue('C'.$row, $_POST['tel']);
$objPHPExcel->getActiveSheet()->SetCellValue('D'.$row, $_POST['adresss']);
$objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
$objWriter->save('files\Clientes.xlsx');
这里的问题是总是创建一个新的 .xlsx 文件或删除 Excel 文件中的其他行,我需要添加一个新行......有什么想法吗?