Excel Pie Chart - can I change the starting slice color in the automatic color index?
Posted on 2011-03-08
I am using VBA to automate the creation of a bunch of worksheets with pie charts in Excel from MS Access. There will be two pie charts on each worksheet, and a worksheet for each Department (around 30 total).
I have figured out that the default color scheme is that first slice of each pie chart starts with ColorIndex #17, and proceeds from there one by one (18, 19, 20, etc)
What I hope to do is to have the Color Index start from a different number for the second chart, for example start with color index #7. I have searched online and have not seen any references to this at all. Is it possible?
The reason for this is that with the two pies side by side, people naturally think that the first color of each pie correspond to each other, but they do not.
I tried assigning colors to the specific labels for a slice (using Select Case), but this yielded some extremely ugly color combinations in some of the pies. Yuck.
Anyone have any idea if this can be done? Even more important, can someone tell me how to do it!?