Add Method (Presentations Collection)

Applies To

Presentations collection object.

Description

Creates a presentation. Returns a Presentation object that represents the new presentation.

Syntax

expression.Add(WithWindow)

expression Required. An expression that returns a Presentations collection.

WithWindow Optional Long. True to create the presentation in a visible window. If this argument is False, the new presentation isn't visible. The default value is True.

Example

This example creates a presentation, adds a slide to it, and then saves the presentation.

With Presentations.Add
    .Slides.Add 1, ppLayoutTitle
    .SaveAs "Sample"
End With