Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.FileCloseEx Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Closes the active project.

Syntax

expression. FileCloseEx( ** Save, ** NoAuto, ** CheckIn** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
SaveOptionalLongCan 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.
NoAutoOptionalBooleanTrue if an Auto_Close macro is not run and the Close event is not raised. The default value is False.
CheckInOptionalVariantTrue 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
© 2018 Microsoft