PowerPoint) (Presentation 物件

代表 Microsoft PowerPoint 簡報。

註解

Presentation 物件是 簡報 的成員 集合。 Presentations 集合包含所有 簡報 物件,代表在 PowerPoint 中開啟的簡報。

下列範例說明如何:

  • 傳回依名稱或索引編號指定的簡報

  • 傳回使用中視窗的簡報

  • 傳回任何您指定之文件視窗或投影片放映視窗中的簡報

範例

使用 簡報 (索引) ,其中 index 是簡報的名稱或索引編號,可以傳回單一 Presentation 物件。 簡報名稱是使用或不副檔名,且不含路徑的檔案名稱。 下列範例會將投影片新增至範例簡報的開頭。

Presentations("Sample Presentation").Slides.Add 1, 1

請注意,如果開啟了多個具有相同名稱的簡報,則會傳回集合中具有指定名稱的第一個簡報。

使用 ActivePresentation 屬性可傳回使用中視窗中的簡報。 下列範例會儲存使用中簡報。

ActivePresentation.Save

使用 Presentation 屬性可傳回指定文件視窗或投影片放映視窗中的簡報。 下列範例會顯示第一張投影片放映視窗中執行的投影片放映的名稱。

MsgBox SlideShowWindows(1).Presentation.Name

方法

名稱
AcceptAll
AddTitleMaster
AddToFavorites
ApplyTemplate
ApplyTemplate2
ApplyTheme
CanCheckIn
CheckIn
CheckInWithVersion
Close
Convert2
CreateVideo
EndReview
EnsureAllMediaUpgraded
Export
ExportAsFixedFormat
ExportAsFixedFormat2
FollowHyperlink
GetWorkflowTasks
GetWorkflowTemplates
LockServerFile
Merge
MergeWithBaseline
NewWindow
PrintOut
PublishSlides
RejectAll
RemoveDocumentInformation
Save
SaveAs
SaveCopyAs
SaveCopyAs2
SendFaxOverInternet
SetPasswordEncryptionOptions
UpdateLinks

屬性

名稱
Application
廣播
BuiltInDocumentProperties
ChartDataPointTrack
Coauthoring
ColorSchemes
CommandBars
Container
ContentTypeProperties
CreateVideoStatus
CustomDocumentProperties
CustomerData
CustomXMLParts
DefaultLanguageID
DefaultShape
設計
DisplayComments
DocumentInspectors
DocumentLibraryVersions
EncryptionProvider
EnvelopeVisible
ExtraColors
FarEastLineBreakLanguage
FarEastLineBreakLevel
Final
Font
FullName
GridDistance
指南
HandoutMaster
HasHandoutMaster
HasNotesMaster
HasTitleMaster
HasVBProject
InMergeMode
IsFullyDownloaded
LayoutDirection
名稱
NoLineBreakAfter
NoLineBreakBefore
NotesMaster
PageSetup
Parent
Password
PasswordEncryptionAlgorithm
PasswordEncryptionFileProperties
PasswordEncryptionKeyLength
PasswordEncryptionProvider
Path
Permission
PrintOptions
ReadOnly
ReadOnlyRecommended
RemovePersonalInformation
Research
Saved
SectionProperties
SensitivityLabel
ServerPolicy
SharedWorkspace
簽章
SlideMaster
投影片
SlideShowSettings
SlideShowWindow
SnapToGrid
同步處理
標記
TemplateName
TitleMaster
VBASigned
VBProject
Windows
WritePassword

另請參閱

PowerPoint 物件模型參考資料

支援和意見反應

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