Application.PresentationClose event (PowerPoint)
Occurs immediately before any open presentation closes, as it is removed from the Presentations collection.
Syntax
expression. PresentationClose
( _Pres_
)
expression An expression that returns an Application object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Pres | Required | Presentation | The presentation that is being closed. |
Example
This example saves a copy of the active presentation as an HTML file, with the same name and within the same folder.
Private Sub App_PresentationClose(ByVal Pres As Presentation)
FindNum = InStr(1, Pres.FullName, ".")
HTMLName = Mid(Pres.FullName, 1, FindNum - 1) _
& ".htm"
Pres.SaveCopyAs HTMLName, ppSaveAsHTML
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.