Created
February 23, 2015 18:15
-
-
Save lucasrizoli/e055bf2c18218ffdcee7 to your computer and use it in GitHub Desktop.
PowerPoint Macro to switch language of document to en-CA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also http://support2.microsoft.com/default.aspx?scid=kb;en-us;245468