Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.AfterNewPresentation Event (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Occurs after a presentation is created.

Syntax

expression. AfterNewPresentation( Pres )

expression An expression that returns a Application object.

Parameters

NameRequired/OptionalData TypeDescription
PresRequiredPresentationName of the presentation.

Example

This example uses the RGB function to set the slide master background color for the new presentation to salmon pink, and then applies the third color scheme to the new presentation.

Private Sub App_AfterNewPresentation(ByVal Pres As Presentation)

    With Pres

        Set CS3 = .ColorSchemes(3)

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

        .SlideMaster.ColorScheme = CS3

    End With

End Sub

See also

Concepts

Application Object

© 2017 Microsoft