ArtYaffe has asked for the wisdom of the Perl Monks concerning the following question:
I have also tried, for the second line,use Win32::OLE::Const 'Microsoft Excel'; [...] $WS->Cells($i,11)->FormatConditions ->Delete; $WS->Cells($i,11)->FormatConditions->Add(xlExpression,, "=AND(J$i>0,K$i=0)"); $WS->Cells($i,11)->FormatConditions(1)->Interior->{ColorIndex}= xlYellow; [...]
and also$WS->Cells($i,11)->FormatConditions-> Add({Type} => xlExpression,{Formula1} => "=AND(J$i>0,K$i=0)");
A Macro to do what I want produces code that looks very much like what I've coded. Help!$WS->Cells($i,11)->FormatConditions->Add(xlExpression, undef,"=AND(J$i>0,K$i=0)");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: excel conditional formatting
by bart (Canon) on Sep 10, 2009 at 15:46 UTC | |
by ArtYaffe (Novice) on Sep 10, 2009 at 16:04 UTC | |
by ArtYaffe (Novice) on Sep 10, 2009 at 17:35 UTC | |
|
Re: excel conditional formatting
by o_chfa (Acolyte) on Sep 06, 2009 at 17:08 UTC | |
by ArtYaffe (Novice) on Sep 09, 2009 at 02:45 UTC |