PresentationPrint Event

Microsoft PowerPoint Visual Basic

Show All

PresentationPrint Event

       

Occurs before a presentation is printed.

Private Sub application_PresentationPrint(ByVal Pres As Presentation)

application   An object of type Application declared with events in a class module. For information about using events with the Application object, see Using Events with the Application Object.

Pres   The presentation to be printed.

Example

This example sets the PrintHiddenSlides property to True so that every time the active presentation is printed, the hidden slides are printed as well.

Private Sub App_PresentationPrint(ByVal Pres As Presentation)
    Pres.PrintOptions.PrintHiddenSlides = True
End Sub