Share via


Application.FileExit Method

Project Developer Reference

Quits Microsoft Office Project 2007.

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.

Visual Basic for Applications
  Sub SaveAndCloseActiveProject()
    FileExit pjSave
End Sub

See Also