Open Method

Applies To

Presentations collection object.

Description

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

Syntax 1

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.

Example

This example opens a presentation with read-only status.

Presentations.Open FileName:="c:\My documents\pres1.ppt", _
    ReadOnly:=True