Application.NewPresentation Event (PowerPoint)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Occurs after a presentation is created, as it is added to the Presentations collection.

expression .NewPresentation(Pres)

expression An expression that returns a Application object.

Parameters

Name

Required/Optional

Data Type

Description

Pres

Required

Presentation

The new presentation.

If your Visual Studio solution includes the Microsoft.Office.Interop.PowerPoint reference, this event maps to the following types:

  • Microsoft.Office.Interop.PowerPoint.EApplication_NewPresentationEventHandler (the NewPresentation delegate.)

  • Microsoft.Office.Interop.PowerPoint.EApplication_Event.NewPresentation (the NewPresentation event.)

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_NewPresentation(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
Show: