Error cells protection with FILL_SOLID style !

Topics: Developer Forum, Project Management Forum, User Forum
Feb 2, 2014 at 2:13 PM
Edited Feb 2, 2014 at 2:14 PM

I have to protect whole sheet except for one column "I"


BUT !!! When i try to set style for cells from "I" column, I get the whole sheet protected and "I" TOO !

$page ->getStyle('I1:I50')->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID);
$page ->getStyle('I1:I50')->getFill()->getStartColor()->setRGB('CC0000');

Help me please!