Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 PHPExcel 中创建包含非连续单元格的命名范围?甚至可能吗?提前致谢!
这是我所做的:
$objPHPExcel->addNamedRange( new PHPExcel_NamedRange('ToggleRange', $activeSheet, 'C4:G5,C9:J10,C14:H15') );
但发生的情况是,命名范围仅应用于 C4:G5,而不应用于其他单元格。
$objPHPExcel->addNamedRange( new PHPExcel_NamedRange( 'MyNamedRange', $objPHPExcel->getActiveSheet(), 'A1:A3,C1:C3,E1:E3' ) );