What kind of chart is it? Some series types do not have an interior
property.
Also, unless you're using Excel 2007, RGB(r, g, b) will apply the color in
Excel's palette which Excel decides is closest to the RGB values specified.
It might be close, or it might not. Check out color index to use any of the
56 colors in the Excel palette.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. -
http://PeltierTech.com
_______
"Carlos Pedro" <Carlos
(E-Mail Removed)> wrote in message
news:5F9C2E69-11EC-4588-ABA2-(E-Mail Removed)...
> Hello, I'm looking the equivelent in c++ for the following VBA code:
>
> Sub change_series_color()
> Set ch = Worksheets(1).ChartObjects(1)
> Set objSeries = ch.Chart.SeriesCollection(1)
> objSeries.Interior.Color = RGB(255, 127, 0)
> End Sub
>
> I can get the SeriesCollection of the chart, however, the Series Object
> doesn't expose a property for its interior or it's interior color..