AppExecute Method
Starts an application.
Syntax
expression**.AppExecute(Window, Command, Minimize, Activate)**
*expression * Optional. An expression that returns an Application object.
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.
Example
The following example starts and activates Microsoft Excel.
Sub StartMicrosoftExcel()
AppExecute Command:="Excel.exe"
End Sub
Applies to | Application Object
See Also | ActivateMicrosoftApp Method | AppMaximize Method | AppMinimize Method | AppMove Method | AppRestore Method | AppSize Method