Wednesday, November 18, 2009

PowerPoint: Formating Slide Titles on all slides

'*************************************************************
' Formating Slide Titles on all slides
' This macro formats the position, Font name and Font size of
' titles on all slides of active presentation
'*************************************************************
Sub FormatSlideTitles()
Dim s As Slide
Dim shp As Shape

For Each s In ActivePresentation.Slides
For Each shp In s.Shapes
If shp.Type = msoPlaceholder Then
With shp
.Top = 5
.TextFrame.TextRange.Font.Name = "Times New Roman"
.TextFrame.TextRange.Font.Size = 24
End With
End If
Next shp
Next s

End Sub

4 comments:

  1. This code modifies the content and not the titles.
    Help will be appreciated. we.go@hotmail.com

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. For Each s In ActivePresentation.Slides
    If s.Shapes.HasTitle Then s.Shapes.Title.TextFrame.TextRange.Font.Size = 24
    Next s

    ReplyDelete