Application.FileExit method (Project)
expression A variable that represents an Application object.
|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.|
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.