Created
March 27, 2015 08:09
-
-
Save felixlindemann/408c921c7fcd38869e7d to your computer and use it in GitHub Desktop.
Change default language of Powerpoint 2010
This file contains 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
Sub ChangeProofingLanguageToEnglish() | |
Dim j, k As Integer | |
Dim languageID As MsoLanguageID | |
'Set this to your preferred language | |
languageID = msoLanguageIDEnglishUK | |
For j = 1 To ActivePresentation.Slides.Count | |
For k = 1 To ActivePresentation.Slides(j).Shapes.Count | |
ChangeAllSubShapes ActivePresentation.Slides(j).Shapes(k), _ | |
languageID | |
Next k | |
Next j | |
End Sub | |
Sub ChangeAllSubShapes(targetShape As shape, languageIaD As MsoLanguageID) | |
Dim i As Integer | |
If targetShape.HasTextFrame Then | |
targetShape.TextFrame.TextRange.languageID = languageID | |
End If | |
Select Case targetShape.Type | |
Case msoGroup, msoSmartArt | |
For i = 1 To targetShape.GroupItems.Count | |
ChangeAllSubShapes targetShape.GroupItems.Item(i), languageID | |
Next i | |
End Select | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment