PowerPoint) (Application.Presentations 屬性
會傳回代表所有開啟簡報的 Presentations 集合。 唯讀。
語法
expression。 Presentations
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
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。