Supercharge your PowerPoint productivity with
Supercharge your PPT Productivity with PPTools - Click here to learn more.

PPTools

Image Export converts PowerPoint slides to high-quality images.

PPT2HTML exports HTML even from PowerPoint 2010 and 2013, gives you full control of PowerPoint HTML output, helps meet Section 508 accessibility requirements

Merge Excel data into PowerPoint presentations to create certificates, awards presentations, personalized presentations and more

Resize your presentations quickly and without distortion

Language Selector switches the text in your presentation from one language to another

FixLinks prevents broken links when you distribute PowerPoint presentations

Shape Styles brings styles to PowerPoint. Apply complex formatting with a single click.

Prep4PDF preserves interactivity in PowerPoint presentations when you convert to PDF

Converting Scheme/Theme colors to non-Scheme colors

Problem

If you've filled a shape with one of PowerPoint's scheme (PPT 97-2003) or theme (PPT 2007 and on) colors, the shape's color will change if you copy it into a presentation with a different theme/scheme or apply a different theme/scheme to the current presentation.

Sometimes this is exactly what you want to have happen.

Sometimes not. If you work for a certain famous beverage company headquartered in Atlanta, Georga, USA, you do NOT want your red-colored logos turning blue when you move slides between presentations.

The macros below will convert fills from scheme/themed to plain RGB. When you use RGB fills, the color stays put. It won't change when themes/schemes change. There's a macro to convert all of the fills in the presentation and another to convert just the currently selected fill.

We'll leave it as an exercise for the reader to expand this to handle line colors. And gradients. And all that other fun stuff.

Solution

Run this macro on the presentation to convert the fill of any scheme/theme colored shapes to plain RGB fills.

Sub AllSchemesToRGB()
' changes scheme fills to rgb fills

    Dim oSh As Shape
    Dim oSl As Slide
    Dim lColor As Long

    For Each oSl In ActivePresentation.Slides
        For Each oSh In oSl.Shapes
            With oSh
                If .Fill.ForeColor.Type = msoColorTypeScheme Then
                    lColor = .Fill.ForeColor.RGB
                    .Fill.ForeColor.RGB = lColor
                End If
            End With
        Next    ' shape
    Next    ' slide
End Sub

Or to select and change just one shape at a time, use this:

Sub SchemeToRGB()
' changes scheme fills to rgb fills

    Dim oSh As Shape
    Dim lColor As Long

    Set oSh = ActiveWindow.Selection.ShapeRange(1)        
        With oSh
            If .Fill.ForeColor.Type = msoColorTypeScheme Then
                lColor = .Fill.ForeColor.RGB
                .Fill.ForeColor.RGB = lColor
            End If
        End With
End Sub

See How do I use VBA code in PowerPoint? to learn how to use this example code.


Did this solve your problem? If so, please consider supporting the PPT FAQ with a small PayPal donation.
Page copy protected against web site content infringement by Copyscape Contents © 1995 - 2015 Stephen Rindsberg, Rindsberg Photography, Inc. and members of the MS PowerPoint MVP team. You may link to this page but any form of unauthorized reproduction of this page's contents is expressly forbidden.
Español    Deutsch    Français    Português    Italiano    Nederlands    Greek    Japanese    Korean    Chinese

Supercharge your PPT Productivity with PPTools

content authoring & site maintenance by
Friday, the automatic faq maker (logo)
Friday - The Automatic FAQ Maker

Converting Scheme/Theme colors to non-Scheme colors
http://www.pptfaq.com/FAQ01038_Converting_Scheme-Theme_colors_to_non-Scheme_colors.htm
Last update 07 June, 2011
Created: