Change the formatting of Photo Album captions
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?
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.