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

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

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

启动一个应用程序。Starts an application.

语法Syntax

表达式AppExecute(* 窗口命令最小化激活)expression. **AppExecute( ** Window, ** Command, ** Minimize, ** Activate* )

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

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
窗口Window可选OptionalStringString要激活的应用程序的标题。The caption of the application to activate.
命令Command可选OptionalStringString要启动该应用程序的命令。如果省略了窗口的要求。如果应用程序正在运行,则命令将被忽略。The command to start the application. Required if Window is omitted. If the application is running, Command is ignored.
MinimizeMinimize可选OptionalBooleanBoolean真正的主窗口已最小化。默认值为FalseTrue if the main window is minimized. The default value is False.
ActivateActivate可选OptionalBooleanBoolean如此如果应用程序被激活。默认值为TrueTrue if the application is activated. The default value is True.

返回值Return Value

BooleanBoolean

示例Example

以下示例将启动并激活 Microsoft Excel。The following example starts and activates Microsoft Excel.

Sub StartMicrosoftExcel() 
 AppExecute Command:="Excel.exe" 
End Sub
© 2018 Microsoft