Created
August 2, 2018 12:18
-
-
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?
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 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