Application.FileClose Method

Project Developer Reference

Closes the active project.

Syntax

expression.FileClose(Save, NoAuto, CheckIn)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Save Optional Long Can be one of the following PjSave constants: pjDoNotSave, pjSave, or pjPromptSave. The default value is pjPromptSave for new project files and projects that have changed since the last save.
NoAuto Optional Boolean True if an Auto_Close macro is not run and the Close event is not raised. The default value is False.
CheckIn Optional Variant

Return Value
Boolean

Example
The following example saves and closes the active project.

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

See Also