Skip to content

Instantly share code, notes, and snippets.

@ateneva
Created August 2, 2018 12:18
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 ateneva/74b271c8f9fcbce958b5a001b47055a9 to your computer and use it in GitHub Desktop.
Save ateneva/74b271c8f9fcbce958b5a001b47055a9 to your computer and use it in GitHub Desktop.
How do I delete all of a slide content but its title with VBA?
Sub Delete_All_but_Title()
Dim p As Presentation
Set p = ActivePresentation
Dim PPS As Slide
'***************************
For Each PPS In p.Slides
Dim i As Shape
For Each i In PPS.Shapes
If i.Type <> msoPlaceholder Then i.Delete
Next i
Next PPS
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment