Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Conditional Formatting with format code

$
0
0
Hello,

I'm trying to format the cells with this code.
The format code with an arrow is not apply to my cells.
The font color is OK but the format code seems not working.

How can I do that with conditional formatting ?
            $objConditional = new \PHPExcel_Style_Conditional();
            $objConditional->setConditionType(\PHPExcel_Style_Conditional::CONDITION_EXPRESSION);
            $objConditional->setOperatorType(\PHPExcel_Style_Conditional::OPERATOR_NONE);
            $objConditional->addCondition($conditionSup);
            $objConditional->getStyle()->getFont()->getColor()->setRGB('27ae60');
            $objConditional->getStyle()->getFont()->setBold(true);
            $objConditional->getStyle()->getNumberFormat()->setFormatCode('▲0%');
thanks

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>