Project.Close Method

<< Click to Display Table of Contents >>

Navigation:  Developer Edition > Visual Basic for Applications (VBA) > Object Model Reference > Project Object > Methods >

Project.Close Method

Previous pageReturn to chapter overviewNext page

Closes the project results. Optionally closes the workbooks (without saving!)

 

Syntax

expression.Close(CloseFiles,DisplayUndo)

expression. A variable representing a Project object.

 

Parameters

Name

Type

Description

CloseFiles

Boolean

Closes the compared files (workbooks).

DisplayUndo

Boolean

Optional. If true and highlighting or outline are activated, the user

will be given the option to undo

 

Return Value

none

 

Remarks

If you want the files to be saved (with possible highlighting and outline), you must do so prior to calling the Close method.