Quit Method

Quits Microsoft Office Project 2003.

Syntax

expression**.Quit(SaveChanges)**

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

SaveChanges    Optional Long. Specifies whether Project saves changes before quitting. Can be one of the following PjSaveFormat constants: pjDoNotSave, pjSave, or pjPromptSave. The default is pjPromptSave for new project files and projects that have changed since the last save.

Example

The following example saves all open projects and then quits Project.

Sub SaveChangesAndQuit()
    Quit SaveChanges:=pjSave
End Sub

Applies to | Application Object