Table of contents
TOC
Collapse the table of content
Expand the table of content

Presentations.Add Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

NameRequired/OptionalData TypeDescription
WithWindowOptionalMsoTriStateWhether the presentation appears in a visible window.

Return Value

Presentation

Remarks

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

ConstantDescription
msoFalseThe new presentation isn't visible.
msoTrueThe 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

Concepts

Presentations Object

© 2018 Microsoft