Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.3 KB

Project.Application.AppExecute.md

File metadata and controls

54 lines (34 loc) · 1.3 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.AppExecute method (Project)
vbapj.chm8
vbapj.chm8
project-server
Project.Application.AppExecute
af263a18-9b88-e6c2-d44c-a2ac41951624
06/08/2017
medium

Application.AppExecute method (Project)

Starts an application.

Syntax

expression. AppExecute( _Window_, _Command_, _Minimize_, _Activate_ )

expression A variable that represents an Application object.

Parameters

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.

Return value

Boolean

Example

The following example starts and activates Microsoft Excel.

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

[!includeSupport and feedback]