Application.Presentations 属性 (PowerPoint)

返回一个代表所有打开演示文稿的 Presentations 集合。 只读。

语法

expressionPresentations

expression:表示 Application 对象的变量。

返回值

演示文稿

备注

有关返回集合的单个成员的信息,请参阅 从集合中返回对象

如果Visual Studio解决方案包含 Microsoft.Office.Interop.PowerPoint的引用,该属性将映射到以下类型:

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

示例

本示例打开名为"Long Version.ppt"的演示文稿。

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

本示例将第一个演示文稿以"Year-End Report.ppt"名称保存。

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

本示例关闭演示文稿"Year-end report"。

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

另请参阅

Application 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。