Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.1 KB

Project.Application.Quit.md

File metadata and controls

46 lines (29 loc) · 1.1 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.Quit method (Project)
vbapj.chm131252
vbapj.chm131252
project-server
Project.Application.Quit
0aaba635-6d6a-c4a3-fab3-03451659021b
06/08/2017
medium

Application.Quit method (Project)

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

[!includeSupport and feedback]