title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.FileCloseEx method (Project) |
vbapj.chm103 |
|
project-server |
|
56e6eec6-6031-312b-fba5-50db7b43f0b1 |
06/08/2017 |
medium |
Closes the active project.
expression. FileCloseEx
( _Save_
, _NoAuto_
, _CheckIn_
)
expression A variable that represents an Application object.
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. |
Boolean
The CheckIn parameter can accept the value True, False, 0, 1, "Yes", or "No".
The following example saves and closes the active project.
Sub SaveAndCloseActiveProject()
FileCloseEx pjSave
End Sub
[!includeSupport and feedback]