gn4711

Powerpoint Change Language to all Slides

Nov 12th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub Lingo()
  2.  
  3.    ' Declare variables.
  4.   Dim sld As Slide
  5.    Dim shp As Shape
  6.  
  7.    ' Loop through all the slides in the presentation.
  8.   For Each sld In ActivePresentation.Slides
  9.        
  10.        ' Loop through each shape on each slide.
  11.       For Each shp In sld.Shapes
  12.            
  13.            ' If the Shape is a text box...
  14.           If shp.Type = msoTextBox Or msoPlaceholder Then
  15.            If shp.HasTextFrame Then
  16.                
  17.                ' ...then change the language to US English.
  18.               ' NOTE: To change the language ID to another language,
  19.               ' change the msoLanguageID value here to a
  20.               ' different language.
  21.               shp.TextFrame.TextRange.LanguageID = msoLanguageIDEnglishUS
  22.            
  23.            End If
  24.            End If
  25.        Next
  26.    Next
  27.  
  28. End Sub
Add Comment
Please, Sign In to add comment