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

Proud member of

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.

Change the formatting of Photo Album captions

Problem

When you insert a new Photo Album into your presentation, PowerPoint offers the option of adding captions below each photo. It doesn't give you any formatting choices for the caption text, though. What do you do when it inserts Arial text and you wanted Times New Roman?

Solution

This little macro will change the font formatting of all of the photo captions in your presentation (it may also change the formatting of other text shapes within groups, so please: use this on a COPY of your original presentation.

As written, it'll change all of the caption text to Times New Roman 12 point. You can modify it to choose another size or font name.
The Font also has .Bold, .Italic, .Color and other formatting properties you can change.

Sub ReformatCaptions()
    Dim oSl As Slide
    Dim oSh As Shape
    Dim x As Long

    For Each oSl In ActivePresentation.Slides
        For Each oSh In oSl.Shapes
            If oSh.Type = msoGroup Then
                For x = 1 To oSh.GroupItems.Count
                    With oSh.GroupItems(x)
                        If .HasTextFrame Then
                            With .TextFrame.TextRange.Font
                                .Size = 12
                                .Name = "Times New Roman"
                                ' etc ... set other features as needed
                            End With
                        End If
                    End With
                Next
            End If
        Next
    Next
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 - 2022 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.

Supercharge your PPT Productivity with PPTools

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

Change the formatting of Photo Album captions
http://www.pptfaq.com/FAQ00970_Change_the_formatting_of_Photo_Album_captions.htm
Last update 07 June, 2011
Created: