Class Presentation (PowerPoint VBA)

The class Presentation represents a Microsoft PowerPoint presentation.

The classes Application, DocumentWindow, ProtectedViewWindow and SlideShowWindow. give access to class Presentation


Dim prs as Presentation
Set prs = ActivePresentation

Methods

AcceptAll - Accepts all changes.

AddTitleMaster - Adds a title master to the specified presentation and returns a Master object that represents the title master.

AddToFavorites - Adds a shortcut that represents the current selection in the specified presentation to the Windows Favorites folder.

ApplyTemplate - Applies a design template to the specified presentation.

ApplyTemplate2 - Applies a design template and theme variant to the presentation.

ApplyTheme - Applies a theme or design template to the specified presentation.

CanCheckIn - Returns True if Microsoft PowerPoint can check in a specified presentation to a server.

CheckIn - Returns a presentation from a local computer to a server, and sets the local file to read-only so that it cannot be edited locally.

CheckInWithVersion - Returns a presentation from a local computer to a server, and sets the local file to read-only so that it cannot be edited locally.

Close - Closes the specified presentation.

Convert2 - Converts a file to a different file type.

CreateVideo - Creates a video in a Presentation object.

EndReview - Ends the review cycle.

EnsureAllMediaUpgraded - Ensures that all media is up to date in a Presentation object.

Export - Exports each slide in the presentation, using the specified graphics filter, and saves the exported files in the specified folder.

ExportAsFixedFormat - Publishes a copy of a Microsoft PowerPoint presentation as a file in a fixed format, either PDF or XPS.

ExportAsFixedFormat2 - Publishes a copy of a Microsoft PowerPoint presentation as a file in a fixed format, either PDF or XPS.

FollowHyperlink - Displays a cached document, if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document and displays it in the appropriate application.

GetWorkflowTasks - Returns the Microsoft Office WorkflowTasks collection.

GetWorkflowTemplates - Returns the Microsoft Office WorkflowTemplates collection.

LockServerFile - Locks the presentation on the Microsoft Office SharePoint server to prevent its modification.

Merge - Merges the changes in one presentation with another.

MergeWithBaseline - Merges a presentation into another presentation.

NewWindow - Opens a new window that contains the specified presentation. Returns a DocumentWindow object that represents the new window.

PrintOut - Prints the specified presentation.

PublishSlides - Creates a Web presentation (in HTML format) containing slides from any loaded presentation. You can view the published presentation in a web browser.

RejectAll - Rejects all changes.

RemoveDocumentInformation - Removes document information, such as personal information, comments, and document properties, from a Microsoft PowerPoint presentation.

Save - Saves the specified presentation.

SaveAs - Saves a presentation that's never been saved, or saves a previously saved presentation under a different name.

SaveCopyAs - Saves a copy of the specified presentation to a file without modifying the original.

SaveCopyAs2 - Saves a copy of the specified presentation to a file without modifying the original.

SendFaxOverInternet - Sends a presentation as a fax to the specified recipients.

SetPasswordEncryptionOptions - Sets the options Microsoft PowerPoint uses for encrypting presentations with passwords.

UpdateLinks - Updates linked OLE objects in the specified presentation.

Properties

AutoSaveOn true if the edits in the presentation are automatically saved.

Broadcast returns the Broadcast object of the current Presentation object.

BuiltInDocumentProperties returns a DocumentProperties collection that represents all the built-in document properties for the specified presentation. Read-only.

ChartDataPointTrack returns or sets a Boolean that specifies whether charts use cell-reference data-point tracking.

Coauthoring returns a Coauthoring object in the current Presentation object.

ColorSchemes returns a ColorSchemes collection that represents the color schemes in the specified presentation.

CommandBars returns a CommandBars collection that represents the merged command bar set from the host container application and Microsoft PowerPoint. This property returns a valid object only when the container is a DocObject server, like Microsoft Binder, and PowerPoint is acting as an OLE server.

Container returns the object that contains the specified embedded presentation. Read-only.

ContentTypeProperties returns the Microsoft Office MetaProperties collection that describes the metadata stored in the presentation.

CreateVideoStatus returns the status of creating a video in the current Presentation.

CustomDocumentProperties returns a DocumentProperties collection that represents all the custom document properties for the specified presentation. Read-only.

CustomerData returns a CustomerData object.

CustomXMLParts returns a CustomXMLParts object that represents the collection of custom XML parts associated with the specified Presentation object.

DefaultLanguageID returns or sets the default language of a presentation.

DefaultShape returns a Shape object that represents the default shape for the presentation.

Designs returns a Designs object that represents a collection of designs.

DisplayComments determines whether comments are displayed in the specified presentation.

DocumentInspectors returns the Microsoft Office DocumentInspectors collection.

DocumentLibraryVersions returns a DocumentLibraryVersions collection that represents the collection of versions of a shared presentation that has versioning enabled and that is stored in a document library on a server.

EncryptionProvider returns a String that specifies the name of the algorithm encryption provider that PowerPoint uses when encrypting documents.

EnvelopeVisible determines whether the email message header is visible in the document window.

ExtraColors returns an ExtraColors object that represents the extra colors available in the specified presentation.

FarEastLineBreakLanguage returns or sets the language used to determine which line break level is used when the line break control option is turned on.

FarEastLineBreakLevel returns or sets the line break based upon Asian character level.

Final determines whether the presentation is marked as final (read-only).

Fonts returns a Fonts collection that represents all fonts used in the specified presentation.

FullName returns the name of the specified add-in or saved presentation, including the path, the current file system separator, and the file name extension.

GridDistance sets or returns a Single that represents the distance between gridlines.

Guides returns the Guides collection associated with a custom layout.

HandoutMaster returns a Master object that represents the handout master.

HasHandoutMaster indicates whether the presentation has media that resides on a handout master. Read-only

HasNotesMaster indicates whether the presentation has media that resides on a notes master.

HasTitleMaster msoTrue if the specified presentation has a title master.

HasVBProject returns whether the active presentation contains a Microsoft Visual Basic for Applications (VBA) project.

InMergeMode indicates whether the document window is in merge mode. Read-only

LayoutDirection returns or sets the layout direction for the user interface.

Name the name of the presentation includes the file name extension (for file types that are registered) but doesn't include its path. You cannot use this property to set the name. Use the SaveAs method to save the presentation under a different name if you need to change the name.

NoLineBreakAfter returns or sets the characters that cannot end a line.

NoLineBreakBefore returns or sets the characters that cannot begin a line.

NotesMaster returns a Master object that represents the notes master.

PageSetup returns a PageSetup object whose properties control slide setup attributes for the specified presentation.

Password returns or sets the password that must be supplied to open the specified presentation.

PasswordEncryptionAlgorithm returns the algorithm Microsoft PowerPoint uses for encrypting documents with passwords.

PasswordEncryptionFileProperties returns whether Microsoft PowerPoint encrypts file properties for password-protected documents.

PasswordEncryptionKeyLength returns the key length of the algorithm Microsoft PowerPoint uses when it encrypts documents with passwords.

PasswordEncryptionProvider returns the name of the algorithm encryption provider that Microsoft PowerPoint uses when it encrypts documents with passwords.

Path returns a String that represents the path to the specified Presentation object.

Permission expression. Permission

PrintOptions returns a PrintOptions object that represents print options that are saved with the specified presentation.

ReadOnly returns whether the specified presentation is read-only.

ReadOnlyRecommended true if the presentation was saved as read-only recommended.

RemovePersonalInformation determines whether Microsoft PowerPoint should remove all user information from comments and revisions upon saving a presentation.

Research returns a Research object that provides access to the research service feature of Microsoft PowerPoint.

Saved determines whether changes have been made to a presentation since it was last saved.

SectionProperties returns a SectionProperties object.

SensitivityLabel

ServerPolicy returns a Microsoft Office ServerPolicy object.

SharedWorkspace this object or member has been deprecated, but it remains part of the object model for backward compatibility. You should not use it in new applications.

Signatures returns a SignatureSet object that represents a collection of digital signatures.

SlideMaster returns a Master object that represents the slide master.

Slides returns a Slides collection that represents all slides in the specified presentation.

SlideShowSettings returns a SlideShowSettings object that represents the slide show settings for the specified presentation.

SlideShowWindow returns a SlideShowWindow object that represents the slide show window in which the specified presentation is running.

SnapToGrid determines whether to snap shapes to the gridlines in the specified presentation.

Sync this object or member has been deprecated, but it remains part of the object model for backward compatibility. You should not use it in new applications.

Tags returns a Tags object that represents the tags for the specified object.

TemplateName returns the name of the design template associated with the specified presentation.

TitleMaster returns a Master object that represents the title master for the specified presentation.

VBASigned determines whether the Visual Basic for Applications (VBA) project for the specified document has been digitally signed.

VBProject returns a VBProject object that represents the individual Visual Basic project for the presentation.

Windows returns a DocumentWindows collection that represents all document windows associated with the specified presentation.

WorkIdentity

WritePassword sets or returns the password for saving changes to the specified document.

Broadcast - A Broadcast Documents library that is used to store documents being presented.

Coauthoring - Contains properties and methods for manipulating co authoring in a presentation.

ColorSchemes - A collection of all the ColorScheme objects in the specified presentation. Each ColorScheme object represents a color scheme, which is a set of colors that are used together on a slide.

CustomerData - Stores information about a customer (such as name, address, telephone number, and so on) or other information in XML form, as a collection of CustomXMLPart objects associated with a Microsoft PowerPoint object.

Designs - Represents a collection of slide design templates.

DocumentWindow - Represents a document window. The DocumentWindow object is a member of the DocumentWindows collection. The DocumentWindows collection contains all the open document windows.

DocumentWindows - A collection of all the DocumentWindow objects that are currently open in Microsoft PowerPoint. This collection doesn't include open slide show windows, which are included in the SlideShowWindows collection.

ExtraColors - Represents the extra colors in a presentation. The object can contain up to eight colors, each of which is represented by an red-green-blue (RGB) value.

Fonts - A collection of all the Font objects in the specified presentation.

Guides - A collection of Guide objects in a presentation or custom layout.

Master - Represents a slide master, title master, handout master, notes master, or design master.

PageSetup - Contains information about the page setup for slides, notes pages, handouts, and outlines in a presentation.

PrintOptions - Contains print options for a presentation.

Research - Provides access to the research service feature of Microsoft PowerPoint.

SectionProperties - Contains properties and methods for manipulating sections in a presentation.

Shape - Represents an object in the drawing layer, such as an AutoShape, freeform, OLE object, or picture.

Slides - A collection of all the Slide objects in the specified presentation.

SlideShowSettings - Represents the slide show setup for a presentation.

SlideShowWindow - Represents a window in which a slide show runs.

Tags - Represents a tag or a custom property that you can create for a shape, slide, or presentation.