Presentation.Close 方法 (PowerPoint)
會關閉指定的簡報。
語法
運算式。關閉
表達 代表 Presentation 物件的變數。
註解
當您使用此方法時,PowerPoint 會關閉開啟的簡報不提示使用者儲存其工作。 若要防止工作遺失,使用 Save 方法或 SaveAs 方法之前使用 Close 方法。
範例
在這個範例中,會關閉 Pres1.ppt,但不會儲存變更。
With Application.Presentations("pres1.ppt")
.Saved = True
.Close
End With
在這個範例中,會關閉所有開啟的簡報。
With Application.Presentations
For i = .Count To 1 Step -1
.Item(i).Close
Next
End With
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。