For the life of me I can not find the attributes for coloring a data series in an xlAreaStacked chart.
I'm quite sure it's something like:Code:Charts.Add ActiveChart.SetSourceData Source:=Range("E3").Resize(4, DateOffset + 1) ActiveChart.SeriesCollection(1).XValues = Range("F1").Resize(1, DateOffset + 1) ActiveChart.ChartGroups(1).GapWidth = 0 ActiveChart.ChartType = xlAreaStacked
ActiveChart.ChartType.DataSeries(1).Color = "#FFFFFF"
but it seems suspiciously and strangely impossible a piece of information to find.
Thanks for any help.
Last edited by mattdick; 06-05-2009 at 07:23 PM.
Try this out:
Code:ActiveChart.SeriesCollection(1).Interior.ColorIndex = 32
starryknight64
Super, you rock.
I used that as a keyword which finally led me to intelligible discussions of excel color and found that ColorIndex is the less subtle cousin of Color, which I am now using:
Thanks!Code:ActiveChart.SeriesCollection(1).Interior.Color = "#FF0088"
Awesome! Glad I could help.
I assume this is solved now?
starryknight64
Yes, totally solved. I am using Color instead of ColorIndex, but you helped me find the real resource I needed.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks