The PowerPoint Application Object

Unlike all other Office applications (except Outlook), PowerPoint is a single-use application. This means that there can be only one instance of PowerPoint running at a time. If you use the New keyword to create an instance of PowerPoint, and PowerPoint is already running, then the reference that New returns points to the existing instance of the program.

If you are writing VBA code in PowerPoint, then the Application object is automatically available to you. To automate PowerPoint from other Office applications, you must create an instance of the object and a reference to it:

Dim ppApp As PowerPoint.Application
Set ppApp = New PowerPoint.Application

Because of PowerPoint's single-use nature, there is never ...

Get Office® XP Development with VBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.