title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Presentation.Close method (PowerPoint) |
vbapp10.chm583039 |
|
|
0227528a-4693-dd1a-bb5c-cd31384014b0 |
06/08/2017 |
medium |
Closes the specified presentation.
expression.Close
expression A variable that represents a Presentation object.
When you use this method, PowerPoint will close an open presentation without prompting the user to save their work. To prevent the loss of work, use the Save method or the SaveAs method before you use the Close method.
This example closes Pres1.ppt without saving changes.
With Application.Presentations("pres1.ppt")
.Saved = True
.Close
End With
This example closes all open presentations.
With Application.Presentations
For i = .Count To 1 Step -1
.Item(i).Close
Next
End With
[!includeSupport and feedback]