title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.Quit method (Project) |
vbapj.chm131252 |
|
project-server |
|
0aaba635-6d6a-c4a3-fab3-03451659021b |
06/08/2017 |
medium |
Exits Microsoft Project.
expression.Quit( _SaveChanges_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
SaveChanges | Optional | Long | Specifies whether Project saves changes before quitting. Can be one of the following PjSaveType constants: pjDoNotSave, pjSave, or pjPromptSave. The default is pjPromptSave for new project files and projects that have changed since the last save. |
The following example saves all open projects and then exits Project.
Sub SaveChangesAndQuit()
Quit SaveChanges:=pjSave
End Sub
[!includeSupport and feedback]