In article <(E-Mail Removed)>,
(E-Mail Removed) wrote:
> We have some VB code (.bas files macros) which we execute to create
> PowerPoint presentations. We have been using PowerPoint 2000 and the
> line
>
> chartProxy.PlotArea().Fill().ForeColor().SchemeColor = 21
>
> gives us a gray background for a chart. After switching to PowerPoint
> 2003 we have found that the background is now green. We cycled through
> the different color schemes and found 15 and 46 give us shades of gray
> slightly different than the gray that we get with 21 using PowerPoint
> 2000.
> The questions we have are:
>
> - The color schemes appear changed in PowerPoint 2003 as versus
> PowerPoint 2000. Is there any documentation available anywhere
> regarding this change?
Not that I'm aware of, but you can make a screenshot of the MSGraph color
palette, then use an image editing program to sample the colors if you want the
RGB values. Or use a screen sampling app like Pixie to show the colors as you
go.
But here's what I think is happening: generally, the MSGraph colors are
independent of those in PPT, but Graph automatically picks up a few colors from
the current PowerPoint color scheme. Index #21 is one of those ... it picks up
the Shadow color, so if you set the plot area to color #21, it'll always follow
the Shadow color in the current slide's color scheme.
> - We've tried to get the exact gray which we get using PowerPoint 2000
> and 21 as the scheme color by using RGB values but keep getting errors.
> We've tried the following:
>
> chartProxy.PlotArea().Fill().ForeColor.RGB = RGB(0,0,128)
You can't set chart colors to any arbitrary value, unfortunately.
Doing so won't provoke an error, but it just won't work.
> and some other variations and could not make it work. We are not VB
> programmers and so are not sure what we are doing wrong. We don't have
> access to Visual Studio and are trying to run this code from within the
> VB editor in PowerPoint. Any help would be much appreciated!
Have a look here for a good bit of useful info about MS Graph colors:
MSGraph Colors -- The Periodic Table of the Graph
http://www.rdpslides.com/pptfaq/FAQ00777.htm
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================