Application.Presentations Property

PowerPoint Developer Reference

Returns a Presentations collection that represents all open presentations. Read-only.

Syntax

expression.Presentations

expression   A variable that represents a Application object.

Return Value
Presentations

Remarks

For information about returning a single member of a collection, see How to: Return Objects from Collections.

Example

This example opens the presentation named "Long Version.ppt."

Visual Basic for Applications
  Application.Presentations.Open _
    FileName:="c:\My Documents\Long version.ppt"

This example saves presentation one as "Year-End Report.ppt."

Visual Basic for Applications
  Application.Presentations(1).SaveAs "Year-End Report"

This example closes the year-end report presentation.

Visual Basic for Applications
  Application.Presentations("Year-End Report.ppt").Close

See Also