Presentations.Add Method

PowerPoint Developer Reference

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.

Visual Basic for Applications
  With Presentations.Add
    .Slides.Add Index:=1, Layout:=ppLayoutTitle
    .SaveAs "Sample"
End With

See Also