Evento Application. NewPresentation (PowerPoint)Application.NewPresentation event (PowerPoint)
Ocorre depois que uma apresentação é criada, pois é adicionada à coleção Presentations.Occurs after a presentation is created, as it is added to the Presentations collection.
SintaxeSyntax
expression.expression. NewPresentation
( _Pres_
)
expressão Uma expressão que retorna um objeto Application .expression An expression that returns an Application object.
ParâmetrosParameters
NomeName | Obrigatório/OpcionalRequired/Optional | Tipo de dadosData type | DescriçãoDescription |
---|---|---|---|
PresPres | ObrigatórioRequired | PresentationPresentation | A nova apresentação.The new presentation. |
ComentáriosRemarks
Se sua solução do Visual Studio inclui a referência de Microsoft. Office. Interop. PowerPoint , esse evento é mapeado para os seguintes tipos: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 (o delegado NewPresentation.)Microsoft.Office.Interop.PowerPoint.EApplication_NewPresentationEventHandler (the NewPresentation delegate.)
Microsoft.Office.Interop.PowerPoint.EApplication_Event.NewPresentation (o evento NewPresentation.)Microsoft.Office.Interop.PowerPoint.EApplication_Event.NewPresentation (the NewPresentation event.)
ExemploExample
Este exemplo usa a função RGB para definir a cor de plano de fundo do slide mestre da nova apresentação como rosa salmão e aplica o terceiro esquema de cores à nova apresentação.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
Confira tambémSee also
Objeto de AplicativoApplication Object
Suporte e comentáriosSupport and feedback
Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação?Have questions or feedback about Office VBA or this documentation? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.