Skip to content

Latest commit

 

History

History
75 lines (39 loc) · 1.54 KB

PowerPoint.Application.Presentations.md

File metadata and controls

75 lines (39 loc) · 1.54 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.Presentations property (PowerPoint)
vbapp10.chm502001
vbapp10.chm502001
PowerPoint.Application.Presentations
d6f5f565-d593-e230-c3b9-2302bdd83644
06/08/2017
medium

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

[!includeSupport and feedback]