Presentations.Add method (PowerPoint)

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

Syntax

expression.Add (WithWindow)

expression A variable that represents a Presentations object.

Parameters

Name Required/Optional Data type Description
WithWindow Optional MsoTriState Whether the presentation appears in a visible window.

Return value

Presentation

Remarks

The WithWindow parameter value can be one of these MsoTriState constants.

Constant Description
msoFalse The new presentation isn't visible.
msoTrue The default. Creates the presentation in a visible window.

Example

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

With Presentations.Add

    .Slides.Add Index:=1, Layout:=ppLayoutTitle

    .SaveAs "Sample"

End With


See also

Presentations Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.