Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Sub GermanTextBoxFinder()
  2. Dim SlideToCheck As Slide
  3. Dim ShapeIndex As Integer
  4. ' Visit each slide
  5. For Each SlideToCheck In ActivePresentation.Slides
  6. ' On each slide, count down through the shapes
  7. For ShapeIndex = SlideToCheck.Shapes.Count To 1 Step -1
  8. ' If the shape IS a text box and DOES have German text
  9. If SlideToCheck.Shapes(ShapeIndex).Type = msoTextBox And _
  10. MsoLanguageID.msoLanguageIDGerman _
  11. Then
  12. ' Toggle visibility of German Textboxes
  13. SlideToCheck.Shapes(ShapeIndex).Visible = msoFalse
  14. End If
  15. Next
  16. Next
  17.  
  18. End Sub
  19.  
  20. If SlideToCheck.Shapes(ShapeIndex).Type = msoTextBox And _
  21. Left(SlideToCheck.Shapes(ShapeIndex).Name, 6) = "txtGER" Then
  22. ' Toggle visibility of German Textboxes
  23. SlideToCheck.Shapes(ShapeIndex).Visible = msoFalse
  24. Else
  25. SlideToCheck.Shapes(ShapeIndex).Visible = msoTrue
  26. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement