Application.FileExit Method (Project)

Quits Project.

Syntax

expression. FileExit( _Save_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Save Optional Long Can be one of the PjSaveType constants. The default value is pjPromptSave for new project files and projects that have changed since the last save.

Return value

Boolean

Example

The following example saves and closes the active project, and then exits the Project application.

Sub SaveAndCloseActiveProject() 
    FileExit pjSave 
End Sub