$cond1 = new PHPExcel_Style_Conditional();
$cond1->setConditionType(PHPExcel_Style_Conditional::CONDITION_CONTAINSTEXT)->
setOperatorType(PHPExcel_Style_Conditional::OPERATOR_CONTAINSTEXT)->
setText('yes');
$cond1->getStyle()->getFill()->setFillType(PHPExcel_Style_Fill::FILL_SOLID)->getEndColor()->setARGB(PHPExcel_Style_Color::COLOR_YELLOW);
This code changes the value of the background of the cell to yellow. How to change the background to all the cells in a row?
Now:
If the value of the cell is "yes", then change the background of the cells.
Seeking:
If the value of the cell is "yes", then change the background to all the cells in the row.