Table of contents
TOC
折叠目录
展开目录

Application.FileExit 方法 (项目)Application.FileExit Method (Project)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

退出项目。Quits Project.

语法Syntax

表达式FileExit(* 保存)expression. **FileExit( ** Save* )

表达式_一个表示应用程序对象的变量。_expression A variable that represents an Application object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
SaveSave可选OptionalLongLong可以是PjSaveType常量之一。默认值是pjPromptSave ,用于新的项目文件和自上次保存以来已更改的项目。Can be one of the PjSaveType constants. The default value is pjPromptSave for new project files and projects that have changed since the last save.

返回值Return Value

BooleanBoolean

示例Example

下面的示例将保存并关闭活动项目,,然后退出项目应用程序。The following example saves and closes the active project, and then exits the Project application.

Sub SaveAndCloseActiveProject() 
    FileExit pjSave 
End Sub
© 2018 Microsoft