VBA, apply colorscheme color

E

Edward

Hi everybody
Useing UI if we apply a custom scheme color ( e.g. accent 1) to a text ,
when we change the theme color scheme , that text color changes too, I VBA
Ive used the following code
ActivePresentation.SlideMaster.TextStyles(ppBodyStyle).Levels(1).Font.Color
= _
ActivePresentation.Designs(1).SlideMaster.Theme.ThemeColorScheme(msoThemeAccent1)

which applies the correct color , but when I change the color scheme it
dosn't change the text color ?
Any suggestions?
 
S

Shyam Pillai

Edward,
Use:
ActivePresentation.SlideMaster.TextStyles(ppBodyStyle).Levels(1).Font.Color.ObjectThemeColor
= msoThemeAccent1

The way you do it, assigns the color as a RGB value which will not get
updated.

Regards,
Shyam Pillai

Image Importer Wizard: http://skp.mvps.org/iiw.htm
 
E

Edward

Awesome ! thank you so much
--
Best regards,
Edward


Shyam Pillai said:
Edward,
Use:
ActivePresentation.SlideMaster.TextStyles(ppBodyStyle).Levels(1).Font.Color.ObjectThemeColor
= msoThemeAccent1

The way you do it, assigns the color as a RGB value which will not get
updated.

Regards,
Shyam Pillai

Image Importer Wizard: http://skp.mvps.org/iiw.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top