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
Hello

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

$page->getProtection()->setPassword('bestprice');
$page->getProtection()->setSheet(true);
$page->getStyle('I')->getProtection()->setLocked(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED);

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!
Thanks