AppActivate

concerns

The AppActivate function activates an application window.

 

Syntax

AppActivate(Title [, Wait]])

Return value

None

Parameter

Use

Name

Type

Passing

Description

Required

Title

String

ByVal

Name of the application

Optional

Wait

Boolean

ByVal

See below

Use the Title parameter to specify the title of the title bar in the application window you want to activate. The AppActivate instruction focuses on the specified application or specified window but does not affect whether it is displayed maximized or minimized. The activated application window loses focus if the user closes the window or places the focus on another window. Use the Shell function if you want to start an application and set the window style.

The optional Wait parameter can be specified if the calling application is to wait until it receives the focus, and only then activates the called application. If you omit the Wait parameter, it is automatically assigned False. In this case, the specified application is activated with immediate effect.