How to determine RGB values for default colors in Excel 2007 column chart

I created a column chart letting Excel automatically choose the column colors.  I like the colors, but would like to change the order of the colors in the chart.  I can't find a way to determine the RGB values for these automatic colors so that I can manually change them.  When I try to look up the RGB values for a data series the column color is changed to blue.  Here's the procedure I use to try to look up the RGB values: Right click on the data series in the chart, select format data series, select fill, then choose solid fill.  At this point the color is automatically changed to blue.  If the color hadn't changed to blue, the next steps I would have chosen would be: click on the drop down arrow for the color palette, select more colors, and then write down the RGB values so that I could change a different series to that color.  Any help in finding a list of default colors and associated RGB values or a way to determine the values in Excel 2007 would be appreciated.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello makrnlyn,

select the data series, open the format dialog, change the Fill color from Automatic to Solid Fill, then click the color drop-down arrow and select More colors. On the Custom tab of the Colors dialog you can read the RGB values.

cheers, teylyn

If you are comfortable with VBA, this will give you the RGB colors.
You can also tweak it to set the color instead of just getting it.
Sub x()
Dim c As ChartObject
Dim sc As SeriesCollection
Dim s As Series
Dim i As Long
Dim RGBColor As Long
Dim Red As Long, Green As Long, Blue As Long

Set c = ActiveSheet.ChartObjects(1)

For Each s In c.Chart.SeriesCollection
    RGBColor = s.Format.Fill.ForeColor
    Red = &HFF& And RGBColor
    Green = (&HFF00& And RGBColor) \ 256
    Blue = (&HFF0000 And RGBColor) \ 65536

    MsgBox Red & "/" & Green & "/" & Blue
End Sub

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
marknlynn3Author Commented:
Thanks cyberkiwi.  Love the solution and your username.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.