Presentation Object

Multiple objects
Presentation
Multiple objects

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

Using the Presentation Object

This section describes 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

Returning a presentation that you specify by name or index number

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.

Returning the presentation in the active window

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

ActivePresentation.Save

Note that if an embedded presentation is in-place active, the ActivePresentation property returns the embedded presentation.

Returning the presentation in any document window or slide show window you specify

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

Properties | Application Property | BuiltInDocumentProperties Property | ColorSchemes Property | CommandBars Property | Container Property | CustomDocumentProperties Property | DefaultLanguageID Property | DefaultShape Property | Designs Property | DisplayComments Property | DocumentLibraryVersions Property | EnvelopeVisible Property | ExtraColors Property | FarEastLineBreakLanguage Property | FarEastLineBreakLevel Property | Fonts Property | FullName Property | GridDistance Property | HandoutMaster Property | HasRevisionInfo Property | HasTitleMaster Property | HTMLProject Property | LayoutDirection Property | Name Property | NoLineBreakAfter Property | NoLineBreakBefore Property | NotesMaster Property | PageSetup Property | Parent Property | Password Property | PasswordEncryptionAlgorithm Property | PasswordEncryptionFileProperties Property | PasswordEncryptionKeyLength Property | PasswordEncryptionProvider Property | Path Property | Permission Property | PrintOptions Property | PublishObjects Property | ReadOnly Property | RemovePersonalInformation Property | Saved Property | SharedWorkspace Property | Signatures Property | SlideMaster Property | Slides Property | SlideShowSettings Property | SlideShowWindow Property | SnapToGrid Property | Sync Property | Tags Property | TemplateName Property | TitleMaster Property | VBASigned Property | VBProject Property | WebOptions Property | Windows Property | WritePassword Property

Methods | AddBaseline Method | AddTitleMaster Method | AddToFavorites Method | ApplyTemplate Method | CanCheckIn Method | CheckIn Method | Close Method | EndReview Method | Export Method | FollowHyperlink Method | Merge Method | NewWindow Method | PrintOut Method | ReloadAs Method | RemoveBaseline Method | ReplyWithChanges Method | Save Method | SaveAs Method | SaveCopyAs Method | SendFaxOverInternet Method | SendForReview Method | SetPasswordEncryptionOptions Method | UpdateLinks Method | WebPagePreview Method

Parent Objects | Application Object | DocumentWindow Object | SlideShowWindow Object

Child Objects | ColorSchemes Object | Designs Object | DocumentWindows Object | ExtraColors Object | Fonts Object | PageSetup Object | PrintOptions Object | PublishObjects Object | Shape Object | Slides Object | SlideShowSettings Object | SlideShowWindow Object | Tags Object | WebOptions Object