title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.AppExecute method (Project) |
vbapj.chm8 |
|
project-server |
|
af263a18-9b88-e6c2-d44c-a2ac41951624 |
06/08/2017 |
medium |
Starts an application.
expression. AppExecute
( _Window_
, _Command_
, _Minimize_
, _Activate_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Window | Optional | String | The caption of the application to activate. |
Command | Optional | String | The command to start the application. Required if Window is omitted. If the application is running, Command is ignored. |
Minimize | Optional | Boolean | True if the main window is minimized. The default value is False. |
Activate | Optional | Boolean | True if the application is activated. The default value is True. |
Boolean
The following example starts and activates Microsoft Excel.
Sub StartMicrosoftExcel()
AppExecute Command:="Excel.exe"
End Sub
[!includeSupport and feedback]