FileExit Method

Quits Microsoft Office Project 2003.

Syntax

expression**.FileExit(Save)**

*expression   *     Optional. An expression that returns an Application object.

Save    Optional Long. Can be one of the following PjSaveType constants: pjDoNotSave, pjSave, or pjPromptSave. The default value is pjPromptSave for new project files and projects that have changed since the last save.

Example

The following example saves and closes the active project.

Sub SaveAndCloseActiveProject()
    FileExit pjSave
End Sub

Applies to | Application Object

See Also | FileOpen Method | FileSaveAs Method