Skip to content

Instantly share code, notes, and snippets.

@turchinc
Created March 24, 2014 16:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turchinc/7a980ab0de0c4922ac03 to your computer and use it in GitHub Desktop.
Save turchinc/7a980ab0de0c4922ac03 to your computer and use it in GitHub Desktop.
VBA macro to change the language of all text frames on slides in a PowerPoint presentation.
Sub LangInFrames()
scount = ActivePresentation.Slides.Count
For j = 1 To scount
fcount = ActivePresentation.Slides(j).Shapes.Count
For k = 1 To fcount
If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then
ActivePresentation.Slides(j).Shapes(k).TextFrame.TextRange _
.LanguageID = msoLanguageIDEnglishUK
End If
Next k
Next j
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment