PHPExcel How to set the cell name?

前端 未结 1 1602
失恋的感觉
失恋的感觉 2021-01-23 10:40

Normally in excel you can give a specific name to the cells. How can this be done in phpexcel?

相关标签:
1条回答
  • 2021-01-23 10:56

    Section 4.6.38 of the Developer documentation describes how to do this: the section entitled "Define a named range"

    $objPHPExcel->addNamedRange(
        new PHPExcel_NamedRange('PersonFN', $objPHPExcel->getActiveSheet(), 'B1') 
    );
    
    0 讨论(0)
提交回复
热议问题