Closing a Window : ActivePresentation « PowerPoint « VBA / Excel / Access / Word






Closing a Window

 
Sub close()
    Do While ActivePresentation.Windows.Count > 1
        ActivePresentation.Windows(ActivePresentation.Windows.Count).Close
    Loop
End Sub

 








Related examples in the same category

1.Working with the Active Presentation
2.Use the Save method to save a presentation before closing its last window
3.Check the Path property of the Presentation object before using the Save method if you need to determine whether the presentation has been saved
4.Saving a Copy of a Presentation