Table of contents
TOC
Collapse the table of content
Expand the table of content

Presentations.Open Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Opens the specified presentation. Returns a Presentation object that represents the opened presentation.

Syntax

expression. Open( FileName, ReadOnly, Untitled, WithWindow )

expression A variable that represents an Presentations object.

Parameters

NameRequired/OptionalData TypeDescription
FileNameRequiredStringThe name of the file to open.
ReadOnlyOptionalMsoTriStateSpecifies whether the file is opened with read/write or read-only status.
UntitledOptionalMsoTriStateSpecifies whether the file has a title.
WithWindowOptionalMsoTriStateSpecifies whether the file is visible.

Return Value

Presentation

Remarks

With the proper file converters installed, Microsoft Office PowerPoint 2003 and earlier versions open files with the following MS-DOS filename extensions: .ch3, .cht, .doc, .htm, .html, .mcw, .pot, .ppa, .pps, .ppt, .pre, .rtf, .sh3, .shw, .txt, .wk1, .wk3, .wk4, .wpd, .wpf, .wps, and .xls. PowerPoint also opens files with the following filename extensions: .docm, .docx, .mhtml, .potm, .potx, .ppam, .pptm, .pptx, .ppsm, .ppsx, .thmx, .xlsm, and .xlsx.

The ReadOnly parameter value can be one of these MsoTriState constants.

ConstantDescription
msoFalseThe default. Opens the file with read/write status.
msoTrueOpens the file with read-only status.

The Untitled parameter value can be one of these MsoTriState constants.

ConstantDescription
msoFalseThe default. The file name automatically becomes the title of the opened presentation.
msoTrueOpens the file without a title. This is equivalent to creating a copy of the file.

The WithWindow parameter value can be one of these MsoTriState constants.

ConstantDescription
msoFalseHides the opened presentation.
msoTrueThe default. Opens the file in a visible window.

Example

This example opens a presentation with read-only status.

Presentations.Open FileName:="C:\My Documents\pres1.pptx", ReadOnly:=msoTrue

See also

Concepts

Presentations Object

© 2017 Microsoft