Skip to content

Instantly share code, notes, and snippets.

@hasegawayosuke
Created July 30, 2010 04:07
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 hasegawayosuke/499882 to your computer and use it in GitHub Desktop.
Save hasegawayosuke/499882 to your computer and use it in GitHub Desktop.
'Erase alt text of images from pptx
Option Explicit
Private Sub delAlt(sh As Shape)
Dim s As Shape
sh.AlternativeText = ""
On Error GoTo trap
For Each s In sh.GroupItems
Call delAlt(s)
Next
trap:
Err.Clear
End Sub
Public Sub test()
Dim a As Presentation
Dim sd As Slide
Dim sh As Shape
For Each sd In Presentations(1).Slides
For Each sh In sd.Shapes
Call delAlt(sh)
Next
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment