Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Application.AfterPresentationOpen Event (PowerPoint)

Occurs after an existing presentation is opened.

Version Added: PowerPoint 2007

expression .AfterPresentationOpen(Pres)

expression An expression that returns a Application object.

Parameters

Name

Required/Optional

Data Type

Description

Pres

Required

Presentation

The presentation that is opened.

This example modifies the background color for color scheme three, applies the modified color scheme to the presentation that was opened, and displays the presentation in Slide view.

Private Sub App_AfterPresentationOpen(ByVal Pres As Presentation)

    With Pres

        Set CS3 = .ColorSchemes(3)

        CS3.Colors(ppBackground).RGB = RGB(240, 115, 100)

        With Windows(1)

            .Selection.SlideRange.ColorScheme = CS3

            .ViewType = ppViewSlide

        End With

    End With

End Sub
Show:
© 2015 Microsoft