DocumentWindow.Close Method
Closes the specified document window.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub Close
'Usage
Dim instance As DocumentWindow
instance.Close()
void Close()
Remarks
When you use this method, PowerPoint will close an open presentation without prompting users to save their work. To prevent the loss of work, use the Save method or the SaveAs method before you use the Close method.
Examples
This example closes all windows except the active window.
With Application.Windows
For i = 2 To .Count
.Item(i).CloseNext
End With