PowerPoint) (DocumentWindow.Presentation 屬性

會傳回 Presentation 物件,代表指定文件視窗或投影片放映視窗已建立的簡報。 唯讀。

語法

expression。 Presentation

運算式 代表 DocumentWindow 物件的變數。

傳回值

Presentation

註解

如果目前顯示在文件視窗中的投影片來自內嵌簡報, Windows(1).View.Slide.Parent 則會傳回內嵌簡報,並 Windows(1).Presentation 傳回建立文件視窗的簡報。

如果目前顯示在投影片放映視窗中的投影片來自內嵌簡報, SlideShowWindows(1).View.Slide.Parent 則會傳回內嵌簡報,並 SlideShowWindows(1).Presentation 傳回開始投影片放映的簡報。

範例

在這個範例中,會計算第一個視窗中簡報的投影片個數,並繼續計算第二個視窗中簡報的投影片個數。

firstPresSlides = Windows(1).Presentation.Slides.Count

Windows(2).Presentation.PageSetup _
    .FirstSlideNumber = firstPresSlides + 1

另請參閱

DocumentWindow 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。