Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Charting / December 2006

Tip: Looking for answers? Try searching our database.

Chart axes color index vs font color index

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dennis.benjamin@gmail.com - 07 Dec 2006 01:18 GMT
Hi All

quick question here regarding color indexes. Our company approved
Powerpoint style has a dark background, so when we paste Excel charts
we need to change all the black elements to white. I thought it would
be faster to just change black to white in the "tools .. options..
colors" tab. When I do that, all the lines on our charts turn white but
everything else (axes, legend, title) stays black, even though the
color for all elements is set to automatic. So, do these elements use a
different color table, or does automatic not assign the same color to
all the elements, or what? I have written a VBA macro to individually
change the elements, but it's not so elegant, and I'd like to
understand why my first attempt didn't work.

Thanks for any help!

D
Jon Peltier - 07 Dec 2006 03:32 GMT
Each element has a default (automatic) colorindex which is independent from
all the others.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______

> Hi All
>
[quoted text clipped - 13 lines]
>
> D
dennis.benjamin@gmail.com - 07 Dec 2006 04:49 GMT
Thanks for your reply, Jon. I'm still not clear, though - I thought
that Excel had a 56 color map, and when I look at the map under the
Tools...option tab, only one of those colors is black. So if all the
elements are black, how can they have different color indexes? I
understand that they can all be set independently, but if all the
elements are black then must they not all have the same color index?
Either that or they use separate color maps, in which case, how can I
see and edit the various colormaps used in Excel?

Thanks for your help, and incidentally I've learned a great deal from
your Website examples, they are very well done.

D
> Each element has a default (automatic) colorindex which is independent from
> all the others.
[quoted text clipped - 23 lines]
> >
> > D
Andy Pope - 07 Dec 2006 09:09 GMT
Hi,

The items that are remaining black probably have a colorindex of -4105
which is the xlColorIndexAutomatic.
You would have to set the colour of the chart elements to Black, or
colorindex 1.

Not sure how or if you can change the automatic colours.

Cheers
Andy

> Thanks for your reply, Jon. I'm still not clear, though - I thought
> that Excel had a 56 color map, and when I look at the map under the
[quoted text clipped - 37 lines]
>>>
>>>D

Signature

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

Jon Peltier - 07 Dec 2006 16:05 GMT
I shouldn't have mixed up Automatic with Default. By default the plot area
has an interior color index of 15 and border color index of 16. As far as I
know you cannot change the default colorindex values, but you can change the
colors corresponding to color indices 15 and 16. For several other chart
elements (legend, chart area) fill and border both have color index
of -4105, as Andy pointed out. Series also use this default value for marker
foreground and background color indices.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______

> Hi,
>
[quoted text clipped - 50 lines]
>>>>
>>>>D
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.