Skip to content

Instantly share code, notes, and snippets.

@cyfdecyf
Created April 17, 2013 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyfdecyf/5402854 to your computer and use it in GitHub Desktop.
Save cyfdecyf/5402854 to your computer and use it in GitHub Desktop.
Change font for all slides in powerpoint.
Sub textspace()
Dim slide As slide
Dim shape As shape
Dim text As TextRange2
For Each slide In ActivePresentation.Slides
For Each shape In slide.Shapes
If shape.HasTextFrame Then
Set text = shape.TextFrame2.TextRange
If Not IsNull(text) Then
With text.Font
.Name = "Tahoma"
.Spacing = 0
End With
End If
End If
Next
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment