Partager via


Application.Presentations Property (PowerPoint)

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 Returning an Object from a Collection.

If your Visual Studio solution includes the Microsoft.Office.Interop.PowerPoint reference, this property maps to the following types:

  • Microsoft.Office.Interop.PowerPoint._Application.Presentations

Example

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

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

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

Application.Presentations(1).SaveAs "Year-End Report"

This example closes the year-end report presentation.

Application.Presentations("Year-End Report.ppt").Close

See Also

Concepts

Application Object Members

Application Object