Cell coordinate string can not be a range of cells.

Topics: User Forum
Sep 23, 2009 at 8:20 AM

Hi,

I'm trying to apply inside borders to a range of cells, but the method I'm using results in the above error.

My code is:

 

$this->objPHPExcel->getActiveSheet()->getStyle('A1:AD61')->getInside()->setBorderStyle(PHPExcel_Style_Border::BORDER_THIN);

Does anybody have any thoughts as to what I'm doing wrong here?

Cheers,
Iain 

 

Sep 23, 2009 at 9:05 AM

Fixed my own problem by upgrading from 1.6.7 to 1.7.0.