Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powerpoint 1

Status
Not open for further replies.

adamsr

Technical User
Dec 2, 2002
6
0
0
US
After macro updates file, I have updated slides, and some empty slides.
what is the code to find and delete any empty ones?
Thanks in advance.
 
Hi,

This may help...
Code:
Sub DeleteBlankSlides()
    Dim pr As Presentation, sl As Slide
    
    For Each pr In Presentations
        For Each sl In pr.Slides
            If sl.Shapes.Count = 0 Then sl.Delete
        Next
    Next
End Sub
I hope :) Skip,
SkipAndMary1017@mindspring.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top