24.3. WOrking With Presentations

To get any work done in PowerPoint, you'll usually need to work with one or more presentations. VBA uses the Presentation object to represent a presentation and organizes the open Presentation objects into the Presentations collection.

24.3.1. Creating a New Presentation Based on the Default Template

To create a new presentation based on the default template (the equivalent of clicking the Office button, then clicking the New button in PowerPoint), use the Add method with the Presentations collection. The syntax is as follows:


Here are the components of this syntax:

  • expression is a required expression that returns a Presentations object. Often, it's easiest to use the Presentations ...

Get Mastering VBA for Microsoft Office 2007, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.