Application.FileExit method (Project)

Quits Project.


expression. FileExit( _Save_ )

expression A variable that represents an Application object.


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



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

Sub SaveAndCloseActiveProject() 
    FileExit 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.