Presentations Property

Microsoft PowerPoint Visual Basic

Presentations Property

       

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

For information about returning a single member of a collection, see Returning an Object from a Collection.

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