Skip to content

Latest commit

 

History

History
58 lines (35 loc) · 1.44 KB

Project.Application.FileCloseEx.md

File metadata and controls

58 lines (35 loc) · 1.44 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.FileCloseEx method (Project)
vbapj.chm103
vbapj.chm103
project-server
Project.Application.FileCloseEx
56e6eec6-6031-312b-fba5-50db7b43f0b1
06/08/2017
medium

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

[!includeSupport and feedback]