sushi2k has asked for the wisdom of the Perl Monks concerning the following question:
Hy perlmonks,
I've created a xls document with Spreadsheet::WriteExcel. I also used data-validation fields in some columns (like drop down boxes), so that a user can only put certain values in cells.
This is all going well, but I want to realise that a certain value gets a certain background color in his cell if he is choosen (like high => red, medium => orange, low => green).
Via the if-function I don't know how to do it, because I just can set the value of the cell either the condition is true or false. But I don't know how to set the format on a condition in a cell...
$worksheet->write_formula('A4', '=IF(A3>1,"Yes", "No")' );
Does anyone know how I can do that?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spreadsheet::WriteExcel setting color in drop-down box
by imrags (Monk) on Jul 17, 2009 at 10:42 UTC | |
|
Re: Spreadsheet::WriteExcel setting color in drop-down box
by jrsimmon (Hermit) on Jul 17, 2009 at 11:56 UTC | |
|
Re: Spreadsheet::WriteExcel setting color in drop-down box
by pdeshpan (Acolyte) on Jul 17, 2009 at 13:01 UTC | |
|
Re: Spreadsheet::WriteExcel setting color in drop-down box
by biohisham (Priest) on Jul 17, 2009 at 15:49 UTC | |
|
Re: Spreadsheet::WriteExcel setting color in drop-down box
by sushi2k (Novice) on Jul 20, 2009 at 15:07 UTC |