rain12345bow has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to format some data using excel conditional formating>color scales>Red Yellow Blue Color scale. Anybody has an idea how to achive it using OLE? Thanks ahead.
  • Comment on handling excel conditional formating > color scale

Replies are listed 'Best First'.
Re: handling excel conditional formating > color scale
by ww (Archbishop) on Mar 29, 2011 at 02:01 UTC

    Have you read M$'s docs for whichever version of Excel you're using?

    • Does Excel even support RYB scales?

    Did you Google perl OLE?

    • Those terms alone produce dozens of directly relevant links

    Have you reviewed other options such as (CPAN/ActiveState/etc) modules directly related to Excel?

    • No elaboration necessary, IMO

    And, finally, if you haven't (and your OP makes it appear that you may not have), please read On asking for help, How do I post a question effectively? and I know what I mean. Why don't you?.

      Hi WW, I can use Excel 2007 to get what I want manually. This is the first time I'm posting a question here and thank you for those links. I will read them before posting any more questions. Thanks.
Re: handling excel conditional formating > color scale
by Anonymous Monk on Mar 29, 2011 at 06:35 UTC
Re: handling excel conditional formating > color scale
by davies (Monsignor) on Mar 29, 2011 at 11:09 UTC

    No usable "Red Yellow Blue" colour scale exists, whether in Excel or anywhere else. Red & Blue are primary colours, while Yellow is secondary, made by mixing green and red light. The two commonest colour scales are Red, Green, Blue (Excel VBA has an RGB function) and Cyan, Magenta, Yellow, Black (Excel has no equivalent I have met). Excel also has facility for entering a colour as an integer in the range 0-16777215. Finally, Excels up to 2003 (I don't know about 2007 and later) have an internal colour palette of 56 colours that are configurable on a per-machine basis.

    Regards,

    John Davies