April 9, 2024
Contribute to the Microsoft 365 and Office forum!
Click here to learn more 💡
May 10, 2024
PowerPoint Forum Top Contributors:
Change color of everything assigned to one color in theme to another color in same theme
Report abuse
Thank you.
Reported content has been submitted
I've just started playing with themes myself so I don't have the answer. A good source of info I've found about themes is Vikie Sokol-Evans at Redcape. Maybe you could ask her / them directly
<snip>
Vickie Sokol Evans, MCT
Speaker & Bestselling Author of the Tips in Minutes series now on
Amazon Kindle and the "100 Tips in 100 Minutes"
Spiral-Bound Guide.
Email: *** Email address is removed for privacy ***
Post a question: www.facebook.com/redcapeco
</snip>
<snip http://www.wordarticles.com/Articles/Colours/2007.php >
When a colour has been chosen, Word 2007 stores it, in its workspace, as selected; that is, if a fixed colour is chosen Word stores the number representing that fixed colour. If, however, a Colour Scheme colour is chosen Word will store a different number referencing that Colour Scheme and any adjustments to its brightness; it will not store the RGB value itself. If the document is later saved in Word 2007 format (.docx or .dotm) then the same values will be stored in the document. If, on the other hand, the document is saved in Word 97-2003 format (.doc) all the scheme colour values will be converted to absolute RGB values for the colours in the scheme active at that moment; this degradation in colour is not picked up by the Compatibility Checker and no warning about it is given.
</snip >
Farther down in the article they also have this section
<snip>
1. There is a new Enumeration in Word, wdThemeColorIndex, with constants for each of the scheme colours, with values as per the less significant half of the first byte. This enumeration also contains constants for the values 0 to 3, called Dark1, Light1, Dark2, and Light2, which values appear to produce the same colours as Text1, Background1, Text2, and Background2 respectively. There is also a new Enumeration in Office, msoThemeColorIndex, again with constants for each of the scheme colours, and again with extra constants for Dark1, Light1, Dark2, and Light2. The values of the constants in this enumeration, however, are each 1 greater than the less significant half of the first byte and the corresponding Word constant.
2. The Word and Office constants serve the same purpose but are for use in different circumstances — please don't ask why. Although not their intended purpose, you will see shortly how the Word enumeration constants can also be used to help in working with Color properties. For reference a complete list is presented here.
A complete list of Word and Office ThemeColorIndex Enumeration Constants |
|||||
Colour Scheme Element |
Word Enumeration:
|
Office Enumeration:
|
|||
Name |
Number |
Constant Name |
Value |
Constant Name |
Value |
Dark 1 |
0 |
wdThemeColorMainDark1 |
0 |
msoThemeColorDark1 |
1 |
Light 1 |
1 |
wdThemeColorMainLight1 |
1 |
msoThemeColorLight1 |
2 |
Dark 2 |
2 |
wdThemeColorMainDark2 |
2 |
msoThemeColorDark2 |
3 |
Light 2 |
3 |
wdThemeColorMainLight2 |
3 |
msoThemeColorLight2 |
4 |
Accent 1 |
4 |
wdThemeColorAccent1 |
4 |
msoThemeColorAccent1 |
5 |
Accent 2 |
5 |
wdThemeColorAccent2 |
5 |
msoThemeColorAccent2 |
6 |
Accent 3 |
6 |
wdThemeColorAccent3 |
6 |
msoThemeColorAccent3 |
7 |
Accent 4 |
7 |
wdThemeColorAccent4 |
7 |
msoThemeColorAccent4 |
8 |
Accent 5 |
8 |
wdThemeColorAccent5 |
8 |
msoThemeColorAccent5 |
9 |
Accent 6 |
9 |
wdThemeColorAccent6 |
9 |
msoThemeColorAccent6 |
10 |
Hyperlink |
10 |
wdThemeColorHyperlink |
10 |
msoThemeColorHyperlink |
11 |
Followed Hyperlink |
11 |
wdThemeColorFollowedHyperlink |
11 |
msoThemeColorFollowedHyperlink |
12 |
Background 1 |
12 |
wdThemeColorBackground1 |
12 |
msoThemeColorBackground1 |
14 |
Text 1 |
13 |
wdThemeColorText1 |
13 |
msoThemeColorText1 |
13 |
Background 2 |
14 |
wdThemeColorBackground2 |
14 |
msoThemeColorBackground2 |
16 |
Text 2 |
15 |
wdThemeColorText2 |
15 |
msoThemeColorText2 |
15 |
wdNotThemeColor |
-1 |
msoNotThemeColor |
0 |
||
msoThemeColorMixed |
-2 |
</snip>
It goes on with some some example macros. The trick is figuring out how to identify the objects you want to change the accent color assignment.
*****
.
As computer scientists we are trained to communicate with the dumbest things in the world – computers –
so you’d think we’d be able to communicate quite well with people.
Prof. Doug Fisher
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Maybe you set the color for one of the accents to be the same as the hyperlink format color (not quite the same thing.
If you explain step by step what you did it should be possible to set the color back to something else.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
You should explain HOW you applied the hyperlink color to numerous items. It's really not easy to truly do that.Our work provides us with client plugins and, for some reason, sets the default color as hyperlink for graphs and other items. Frankly this is the first time I have needed to hyperlink a deck, so it has never been an issue before.
Maybe you set the color for one of the accents to be the same as the hyperlink format color (not quite the same thing.
If you explain step by step what you did it should be possible to set the color back to something else.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
As a test try this code. It will NOT fix tables etc but you can at lease see if it helps. WORK ON A COPY!
Sub fixLinkColor()
Dim oshp As Shape
Dim osld As Slide
Dim i As Integer
Dim otxR As TextRange
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.HasTextFrame Then
If oshp.TextFrame.HasText Then
For i = 1 To oshp.TextFrame.TextRange.Runs.Count
Set otxR = oshp.TextFrame.TextRange.Runs(i)
If Not otxR.ActionSettings(ppMouseClick).Action = ppActionHyperlink And _
otxR.Font.Color.ObjectThemeColor = msoThemeColorHyperlink Then _
otxR.Font.Color.ObjectThemeColor = msoThemeColorDark1
Next i
End If
End If
Next oshp
Next osld
End Sub
How to use code
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
PPTools: https://www.pptools.com
Presentation Guild: https://presentationguild.org
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
*****
.
As computer scientists we are trained to communicate with the dumbest things in the world – computers –
so you’d think we’d be able to communicate quite well with people.
Prof. Doug Fisher
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
PPTools: https://www.pptools.com
Presentation Guild: https://presentationguild.org
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Question Info
Last updated October 1, 2021 Views 474 Applies to: