Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Exits Microsoft Project.
Syntax
expression.Quit( _SaveChanges_ )
expression A variable that represents an Application object.
Parameters
| 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. |
Example
The following example saves all open projects and then exits Project.
Sub SaveChangesAndQuit()
Quit SaveChanges:=pjSave
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.