Skip to content

Instantly share code, notes, and snippets.

@lucasrizoli
Created February 23, 2015 18:15
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 lucasrizoli/e055bf2c18218ffdcee7 to your computer and use it in GitHub Desktop.
Save lucasrizoli/e055bf2c18218ffdcee7 to your computer and use it in GitHub Desktop.
PowerPoint Macro to switch language of document to en-CA
Option Explicit
Public Sub ChangeSpellCheckingLanguage()
Dim j As Integer, k As Integer, scount As Integer, fcount As Integer
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
' List of available LanguageID values at https://msdn.microsoft.com/en-us/library/aa432635.aspx
ActivePresentation.Slides(j).Shapes(k) _
.TextFrame.TextRange.LanguageID = msoLanguageIDEnglishCanadian
End If
Next k
Next j
End Sub
@lucasrizoli
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment