SlideShowBegin Event

Microsoft PowerPoint Visual Basic

Show All

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 Sub application_SlideShowBegin(ByVal Wn As 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