PHPExcel如何设置单元名称? [英] PHPExcel How to set the cell name?
本文介绍了PHPExcel如何设置单元名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通常在excel中,您可以给单元格指定一个特定的名称.如何在phpexcel中完成?
Normally in excel you can give a specific name to the cells. How can this be done in phpexcel?
推荐答案
Developer文档的4.6.38部分描述了如何执行此操作:标题为定义命名范围"的部分
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')
);
这篇关于PHPExcel如何设置单元名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文