Check font size : PowerPoint Format « PowerPoint « VBA / Excel / Access / Word






Check font size

 
 Option Explicit

 Function CheckMinFontSize(objPresentation As Presentation) As Boolean
     Dim objSlide As Slide
     Dim objShape As Shape

     CheckMinFontSize = True

     For Each objSlide In objPresentation.Slides
         objSlide.Select
         objSlide.Shapes.SelectAll
         For Each objShape In Windows(1).Selection.ShapeRange
             If objShape.Type = msoPlaceholder Then
                 If objShape.TextFrame.TextRange.Font.Size < 14 Then
                     CheckMinFontSize = False
                     Exit Function
                 End If
             End If
         Next objShape
     Next objSlide
 End Function

 Sub Font_Check()
     If CheckMinFontSize(ActivePresentation) = False Then
         Debug.Print "too small."
     End If
 End Sub

 








Related examples in the same category

1.PowerPoint format ppSaveAsPresentation
2.Applying a Background to One or More Slides
3.Applying a Color Scheme to a Slide
4.Displaying or Hiding a Header or Footer Object
5.Setting the Text in a Header or Footer
6.Setting the Format for Date and Time Headers and Footers
7.Standardizing All the Headers and Footers in a Presentation