Open Method

         Example         Applies To

Presentations collection: Opens the specified presentation. Returns a Presentation object that represents the opened presentation. With the proper file converters installed, Microsoft PowerPoint opens files with the following MS-DOS file extensions: .ch3, .cht, .doc, .htm, .html, .mcw, .pot, .ppa, .pps, .ppt, .pre, .rtf, .sh3, .shw, .txt, .wk1, .wk3, .wk4, .wpd, .wpf, .wps, and .xls.

Syntax

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

expression   Required. An expression that returns a Presentations collection.

FileName   Required String. The name of the file to open

ReadOnly   Optional Long. True to open the file with read-only status. If this argument is omitted, the file is opened with read/write status.

Untitled   Optional Long. True to open the file without a title. This is equivalent to creating a copy of the file. If this argument isn't specified, the file name automatically becomes the title of the opened presentation.

WithWindow   Optional Long. True to open the file in a visible window. False to hide the opened presentation. The default value is True.