Thanks Steve,
This method is only working for shapes on a slide .
What I'm trying to do is to write some code to change the backcolor of a
lable in a userform-Initialize() event.
I used
Private Sub UserForm_Initialize()
Dim shp
set shp=Me.lbl1Header
shp.Fill.ForeColor.ObjectThemeColor=msoThemeColorAccent1
and it generates an error
End Sub
Any suggestions

Signature
Best regards,
Edward
> > Hi everybody,
> > I have several customized colortheme in PP2007 , I need to retrieve Accent1
[quoted text clipped - 18 lines]
> PPTools add-ins for PowerPoint
> http://www.pptools.com/
Steve Rindsberg - 30 Jun 2009 21:37 GMT
> Thanks Steve,
> This method is only working for shapes on a slide .
[quoted text clipped - 7 lines]
> shp.Fill.ForeColor.ObjectThemeColor=msoThemeColorAccent1
> and it generates an error
It's always a good idea to mention that you're working with controls rather
than shapes. Saves time, saves wrong answers. <g> They're TOTALLY
different animals.
You can't use theme or scheme colors with controls, you need to specify RGB
colors.
To get a given them color's RGB (this should be all in one line):
Debug.Print ActivePresentation.Slides(1).ThemeColorScheme.Colors
(msoThemeAccent2).RGB
==============================
PPT Frequently Asked Questions
http://www.pptfaq.com/
PPTools add-ins for PowerPoint
http://www.pptools.com/