Application.FileCloseEx method (Project)
Closes the active project.
Syntax
expression. FileCloseEx
( _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 | True if file is checked in after closing. The default value is False. |
Return value
Boolean
Remarks
The CheckIn parameter can accept the value True, False, 0, 1, "Yes", or "No".
Example
The following example saves and closes the active project.
Sub SaveAndCloseActiveProject()
FileCloseEx 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.