Share via


SlideShowBegin Event

Occurs when you start a slide show. Microsoft PowerPoint creates the slide show window and passes it to this event. If one slide show branches to another, the SlideShowBegin event does not occur again when the second slide show begins.

Private Subapplication**_SlideShowBegin(ByValWnAs SlideShowWindow)**

*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 .

*Wn    * The slide show window initialized prior to this event.

Example

This example adjusts the size and position of the slide show window and then reactivates it.

Private Sub App_SlideShowBegin(ByVal Wn As SlideShowWindow)
    With Wn
        .Height = 325
        .Width = 400
        .Left = 100
        .Activate
    End With
End Sub

Applies to | Application Object

See Also | SlideShowEnd Event