Bewerken

Delen via


Presentation object (PowerPoint)

Represents a Microsoft PowerPoint presentation.

Remarks

The Presentation object is a member of the Presentations collection. The Presentations collection contains all the Presentation objects that represent open presentations in PowerPoint.

The following examples describe how to:

  • Return a presentation that you specify by name or index number

  • Return the presentation in the active window

  • Return the presentation in any document window or slide show window you specify

Example

Use Presentations (index), where index is the presentation's name or index number, to return a single Presentation object. The name of the presentation is the file name, with or without the file name extension, and without the path. The following example adds a slide to the beginning of Sample Presentation.

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

Note that if multiple presentations with the same name are open, the first presentation in the collection with the specified name is returned.

Use the ActivePresentation property to return the presentation in the active window. The following example saves the active presentation.

ActivePresentation.Save

Use the Presentation property to return the presentation that's in the specified document window or slide show window. The following example displays the name of the slide show running in slide show window one.

MsgBox SlideShowWindows(1).Presentation.Name

Methods

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

Properties

Name
Application
Broadcast
BuiltInDocumentProperties
ChartDataPointTrack
Coauthoring
ColorSchemes
CommandBars
Container
ContentTypeProperties
CreateVideoStatus
CustomDocumentProperties
CustomerData
CustomXMLParts
DefaultLanguageID
DefaultShape
Designs
DisplayComments
DocumentInspectors
DocumentLibraryVersions
EncryptionProvider
EnvelopeVisible
ExtraColors
FarEastLineBreakLanguage
FarEastLineBreakLevel
Final
Fonts
FullName
GridDistance
Guides
HandoutMaster
HasHandoutMaster
HasNotesMaster
HasTitleMaster
HasVBProject
InMergeMode
IsFullyDownloaded
LayoutDirection
Name
NoLineBreakAfter
NoLineBreakBefore
NotesMaster
PageSetup
Parent
Password
PasswordEncryptionAlgorithm
PasswordEncryptionFileProperties
PasswordEncryptionKeyLength
PasswordEncryptionProvider
Path
Permission
PrintOptions
ReadOnly
ReadOnlyRecommended
RemovePersonalInformation
Research
Saved
SectionProperties
SensitivityLabel
ServerPolicy
SharedWorkspace
Signatures
SlideMaster
Slides
SlideShowSettings
SlideShowWindow
SnapToGrid
Sync
Tags
TemplateName
TitleMaster
VBASigned
VBProject
Windows
WritePassword

See also

PowerPoint Object Model Reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.