Creating presentations and slides
Opening PowerPoint without opening a new presentation is not very useful. It stands to reason that a new presentation, with at least one slide, should be initiated together with the application.
Getting ready
With Excel still open, make sure that PPoint_Interaction.xlsm
is available. Module1 in the VBA Editor must be visible.
How to do it…
Here are the steps to follow:
- Add the next lines of code to the Sub procedure to open a new presentation with a new slide:
Sub CreatePPointSlides()     Dim PowPntApp As PowerPoint.Application     Dim PowPntPrsnt As PowerPoint.Presentation     Dim PowPntSlide As PowerPoint.Slide         Set PowPntApp = New PowerPoint.Application         PowPntApp.Visible = True     PowPntApp.Activate         ...