![]() |
#1
|
|||
|
|||
![]()
Hi,
I bought a professional Powerpoint template from Graphicriver. The template is well-designed, but I don't like the color scheme. Seems like the author of the template didn't define Theme Colors. So I 've got to do this myself. I'd like to change all instances of "red" into a "green". Is there a way to automatically "map" all existing elements that use a specific color ("red") to a theme color? I'd really like to avoid doing this manually, on hundreds of elements... Thank you for your help! |
#2
|
|||
|
|||
![]()
If your purchased template really doesn't follow the theme colors then it really isn't either "professional" or "well designed".
You might want to post some example slides to see if it can be fixed but if what you say is true I'd send it back! |
#3
|
|||
|
|||
![]()
Thank you for your answer.
Whether a template follows theme colors or not, is not an indicator for good or bad design to me. I prefer a good-looking template without theme colors to a badly-designed template that DOES follow theme colors. Besides that, the author never claimed that the theme follows theme colors, so I don't think it's fair to send it back. |
#4
|
|||
|
|||
![]()
Obviously you are welcome to your opinion but given that this is the reason you cannot change the "red to green" in one step......
|
#5
|
|||
|
|||
![]()
Ok, thanks. Whilst that is disappointing, at least it is a straight answer, and I now know I don't need to investigate further.
I thought there may be a neat little hidden trick (or macro) to do so... So, "hand-crafted" red to green conversion it is ![]() |
#6
|
|||
|
|||
![]()
Quote " You might want to post some example slides to see if it can be fixed "
If you post a few slides I may be able to fix it with code. |
#7
|
|||
|
|||
![]()
Hi John,
Thank you for offering help with code – and sorry for the late response (in case you're still reading this thread). Back from vacation, and soon have to do more presentations. Hence I'm still keen to learn how to change non-theme-colors into theme-colors... I've attached a file with some slides. Basically, I'd like all the "blue" elements to be associated with Theme Accent 1, the "red" elements with Accent 2, ... Whilst I don't know how to code Visual Basic, I think I'll be able to modify existing code –*I just don't know where to start. I'm guessing it's a matter of inspecting the RGB values of a certain color and then mapping it to a theme color. "If RGB values equal 41,128,185 then use theme accent 1". Right? Thank you ever so much for your help! |
#8
|
|||
|
|||
![]()
The colors in that presentation are already Theme Colors (the standard Office Theme Colors)
To change eg the first Blue (accent1) to Red Go to Design > Colors > Create New Theme Colors Change Accent1 to Red and OK. You don't need this but for educational purposes the code might be: Code:
Sub switch_to_Theme() Dim oshp As Shape Dim osld As Slide For Each osld In ActivePresentation.Slides For Each oshp In osld.Shapes If oshp.Fill.ForeColor.RGB = RGB(255, 0, 0) Then oshp.Fill.ForeColor.ObjectThemeColor = msoThemeColorAccent1 End If Next oshp Next osld End Sub |
#9
|
|||
|
|||
![]()
D'oh... sorry John. Wrong attachment (just came back from vacation, so not quite back in the swing of things...)
Will try your code but may need help... Anyway – I've attached another one, which doesn't have theme colors... |
#10
|
|||
|
|||
![]()
And is also made a lot more complex because they have grouped shapes and text!
Have a look at the code here. |
#11
|
|||
|
|||
![]()
Wow! Great work – Thanks very much John!
Looking at the code & RGB values I guess this should be easy to modify for other presentations in the future. One last question: Would you mind (if possible) sharing the code to automatically map all black text to "Text/Background Dark 1", and all white text to "Text/Background Light 1" theme colors? Thank you so much! |
#12
|
|||
|
|||
![]()
Last question (unless you want a bill, I do do this for a living in "real" life!)
Changing the text is much trickier because the text in a textbox may not be all the same color. (I see it is in the example but it may not be) You also may want to play with the code a little and it may not be totally reliable. |
#13
|
|||
|
|||
![]()
Once again: Thanks very much John. I really appreciate this free input & help from a professional/programmer.
The code for changing text is reliable – at least for my needs. |
![]() |
Tags |
theme color |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word/Office Theme Colors | pmokover | Word | 1 | 09-07-2014 02:48 PM |
Powerpoint 2010 - Custom theme applies as a master | dewestone | PowerPoint | 1 | 07-15-2014 12:03 AM |
Custom colors for smart art - via template? theme? add-on? | fl8rmaus | PowerPoint | 0 | 09-26-2012 08:10 AM |
![]() |
choy | Word | 3 | 08-01-2012 09:12 PM |
Powerpoint template colors | Quarath | PowerPoint | 0 | 12-09-2011 04:38 AM |