Skip to content

Latest commit

 

History

History
70 lines (42 loc) · 1.99 KB

PowerPoint.Application.PresentationOpen.md

File metadata and controls

70 lines (42 loc) · 1.99 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.PresentationOpen event (PowerPoint)
vbapp10.chm621006
vbapp10.chm621006
PowerPoint.Application.PresentationOpen
1739cee9-cfc1-0650-de24-be699bafe910
06/08/2017
medium

Application.PresentationOpen event (PowerPoint)

Occurs after an existing presentation is opened, as it is added to the Presentations collection.

Syntax

expression. PresentationOpen( _Pres_ )

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
Pres Required Presentation The presentation that is opened.

Remarks

For information about using events with the Application object, see How to: Use Events with the Application Object.

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

  • Microsoft.Office.Interop.PowerPoint.EApplication_PresentationOpenEventHandler (the PresentationOpen delegate.)

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

Example

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

Private Sub App_PresentationOpen(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

See also

Application Object

[!includeSupport and feedback]