ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   2007 column chart theme colors via VBA (https://www.excelbanter.com/charts-charting-excel/223243-2007-column-chart-theme-colors-via-vba.html)

Intuitive Analyst

2007 column chart theme colors via VBA
 
I'm creating a column chart with 20 pairs of series. Because there are so
many series (2x20==40), I've done it quickly with VBA. What I haven't figured
out is how to use "theme colors" to set the fill color for each series with
VBA. Ideally each pair would use the same color but with two different shades
(is that even the correct term?). Is there a guide somewhere that explains
how to work with theme colors in this setting? I suppose I'm not necessarily
tied to theme colors, but it would be nice (so users could change the theme,
I suppose). Thanks in advance!

Shane Devenshire

2007 column chart theme colors via VBA
 
Hi,

Try this for a starting location and look under the Chart topic

http://msdn.microsoft.com/en-us/library/bb332345.aspx

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Intuitive Analyst" wrote:

I'm creating a column chart with 20 pairs of series. Because there are so
many series (2x20==40), I've done it quickly with VBA. What I haven't figured
out is how to use "theme colors" to set the fill color for each series with
VBA. Ideally each pair would use the same color but with two different shades
(is that even the correct term?). Is there a guide somewhere that explains
how to work with theme colors in this setting? I suppose I'm not necessarily
tied to theme colors, but it would be nice (so users could change the theme,
I suppose). Thanks in advance!


Intuitive Analyst

2007 column chart theme colors via VBA
 
Thanks, that's a neat chart but I'm really looking for some guidance as to
where in the object model I need to be and what a best practice might be.

"Intuitive Analyst" wrote:

I'm creating a column chart with 20 pairs of series. Because there are so
many series (2x20==40), I've done it quickly with VBA. What I haven't figured
out is how to use "theme colors" to set the fill color for each series with
VBA. Ideally each pair would use the same color but with two different shades
(is that even the correct term?). Is there a guide somewhere that explains
how to work with theme colors in this setting? I suppose I'm not necessarily
tied to theme colors, but it would be nice (so users could change the theme,
I suppose). Thanks in advance!


Jon Peltier

2007 column chart theme colors via VBA
 
The descriptions and examples behind this object model map are terribly
unhelpful, even my Microsoft standards. I have asked for more descriptive
descriptions and more relevant examples, and so have many other users, to no
avail.

I'm in the middle of a project that I can't finish without figuring this
out. Hopefully I'll have material for a blog post soon.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Intuitive Analyst" wrote in
message ...
Thanks, that's a neat chart but I'm really looking for some guidance as to
where in the object model I need to be and what a best practice might be.

"Intuitive Analyst" wrote:

I'm creating a column chart with 20 pairs of series. Because there are so
many series (2x20==40), I've done it quickly with VBA. What I haven't
figured
out is how to use "theme colors" to set the fill color for each series
with
VBA. Ideally each pair would use the same color but with two different
shades
(is that even the correct term?). Is there a guide somewhere that
explains
how to work with theme colors in this setting? I suppose I'm not
necessarily
tied to theme colors, but it would be nice (so users could change the
theme,
I suppose). Thanks in advance!





All times are GMT +1. The time now is 12:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com