Application.Presentations property (PowerPoint)

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

Syntax

expression. Presentations

expression A variable that represents an 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

Application 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.