FileClose Method
Closes the active project.
Syntax
expression**.FileClose(Save, NoAuto)**
*expression * Optional. An expression that returns an Application object.
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.
Example
The following example saves and closes the active project.
Sub SaveAndCloseActiveProject()
FileClose pjSave
End Sub
Applies to | Application Object
See Also | FileCloseAll Method | FileExit Method | FileOpen Method | FileSaveAs Method