Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 130
Default rgb colors for charts

Can anyone tell me if there is a way to set rgb colors in excel charts?

thanks so much for your help....
thanks - Cindy
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default rgb colors for charts

Hi,

If you are using xl2003 or older the colours are related to the 56 Colours
available via Tools Options Color.
Using a specific RGB value will just have it mapped to the nearest color
from the palette.
So in order to get a specific colour you will need to change the palette
color for a give color index. Note that this will effect all cells, shapes
and chart items using that color index.

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"cindy" wrote in message
...
Can anyone tell me if there is a way to set rgb colors in excel charts?

thanks so much for your help....
thanks - Cindy


  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 24
Default rgb colors for charts

To add to Andy's comments, I have written a simple macro to change the
RGB values of the XL palette and arranged it by the correct colorindex
and show it in the order of the Tools Options Colors dialog since they
are not in order.

The code I wrote create 55 variations of black and to point out that
XL will find the closest color which is wrong, of course, I make one
value completely different, say all blue. And then if you try and
format something with a red, you won't even be close to a red.

Just change the RGB values in the code and run the macro. Then you can
just copy the palette from that workbook to others.

It's posted on the PPTFAQ.com page at
http://pptfaq.com/FAQ00249.htm

Brian Reilly, MVP


On Sun, 2 Dec 2007 19:28:01 -0800, cindy
wrote:

Can anyone tell me if there is a way to set rgb colors in excel charts?

thanks so much for your help....
thanks - Cindy

  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default rgb colors for charts


cindy;2509442 Wrote:
Can anyone tell me if there is a way to set rgb colors in excel charts?


Cindy,
This Macro will set the default colors in a chart, (so all charts look
the same)

Code:
--------------------
Sub ChgColor()
ActiveWorkbook.Colors(7) = RGB(255, 153, 255)
ActiveWorkbook.Colors(9) = RGB(255, 124, 128)
ActiveWorkbook.Colors(10) = RGB(51, 204, 51)
ActiveWorkbook.Colors(12) = RGB(128, 128, 0)
ActiveWorkbook.Colors(13) = RGB(228, 0, 228)
ActiveWorkbook.Colors(15) = RGB(234, 234, 234)
ActiveWorkbook.Colors(38) = RGB(255, 204, 255)
ActiveWorkbook.Colors(39) = RGB(225, 195, 255)
ActiveWorkbook.Colors(40) = RGB(255, 228, 201)
ActiveWorkbook.Colors(41) = RGB(117, 150, 255)
ActiveWorkbook.Colors(44) = RGB(255, 214, 133)
ActiveWorkbook.Colors(48) = RGB(192, 192, 192)
ActiveWorkbook.Colors(50) = RGB(0, 255, 153)
ActiveWorkbook.Colors(51) = RGB(0, 128, 0)
ActiveWorkbook.Colors(52) = RGB(153, 102, 51)
ActiveWorkbook.Colors(54) = RGB(215, 135, 175)
End Sub
--------------------


John




--
Datsmart
  #5   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default rgb colors for charts

This macro changes some of the palette colors, but none of the default chart
colors, which range from colorindex 17 to 32.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Datsmart" wrote in message
...

cindy;2509442 Wrote:
Can anyone tell me if there is a way to set rgb colors in excel charts?


Cindy,
This Macro will set the default colors in a chart, (so all charts look
the same)

Code:
--------------------
Sub ChgColor()
ActiveWorkbook.Colors(7) = RGB(255, 153, 255)
ActiveWorkbook.Colors(9) = RGB(255, 124, 128)
ActiveWorkbook.Colors(10) = RGB(51, 204, 51)
ActiveWorkbook.Colors(12) = RGB(128, 128, 0)
ActiveWorkbook.Colors(13) = RGB(228, 0, 228)
ActiveWorkbook.Colors(15) = RGB(234, 234, 234)
ActiveWorkbook.Colors(38) = RGB(255, 204, 255)
ActiveWorkbook.Colors(39) = RGB(225, 195, 255)
ActiveWorkbook.Colors(40) = RGB(255, 228, 201)
ActiveWorkbook.Colors(41) = RGB(117, 150, 255)
ActiveWorkbook.Colors(44) = RGB(255, 214, 133)
ActiveWorkbook.Colors(48) = RGB(192, 192, 192)
ActiveWorkbook.Colors(50) = RGB(0, 255, 153)
ActiveWorkbook.Colors(51) = RGB(0, 128, 0)
ActiveWorkbook.Colors(52) = RGB(153, 102, 51)
ActiveWorkbook.Colors(54) = RGB(215, 135, 175)
End Sub
--------------------


John




--
Datsmart



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Colors for Charts If Charts and Charting in Excel 1 May 30th 06 01:02 AM
Conditional Colors for Charts If Charts and Charting in Excel 0 May 29th 06 06:45 PM
Conditional Colors for Charts If Charts and Charting in Excel 0 May 29th 06 05:45 PM
custom colors for pie charts Moh Charts and Charting in Excel 2 April 28th 06 06:28 PM
Matching the colors Column Charts and Pie Charts RohanSewgobind Charts and Charting in Excel 3 April 21st 06 09:35 PM


All times are GMT +1. The time now is 02:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"