albanx
albanx

Reputation: 6335

PHPExcel How to set the cell name?

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

Upvotes: 1

Views: 3522

Answers (1)

Mark Baker
Mark Baker

Reputation: 212402

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') 
);

Upvotes: 4

Related Questions