$file = 'C:/Users/gao/Documents/WXWork/1688857048324134/Cache/File/2022-08/集团报数数据差异明细对比.xlsx'; $spreadsheet = IOFactory::load($file); $cloneSpreadsheet = clone $spreadsheet->getSheet(0); $cloneSpreadsheet->setTitle('新的工作表'); $spreadsheet->addSheet($cloneSpreadsheet); $writer = new Xlsx($spreadsheet); $writer->save($file);