Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Colors in Excel Pie Chart Programmatically

Status
Not open for further replies.

Preston5

Programmer
Aug 31, 2001
4
US
I'm trying to change the colors in an Excel pie chart from an Access form. I can build it OK, but the pie slices have to be a specific color. Here's the code I'm trying and it doesn't work at all. I've also tried the MarkerBackgroundColorIndex, but I think it doesn't work with pie charts.

Any help out there with a tough question?

ActiveChart.SeriesCollection(1).Select
ActiveChart.SeriesCollection(1).Points(2).Select
With Selection
.ClearFormats
.Interior.ColorIndex = 37
End With
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top