Muokkaa

Jaa


Application.ActivateMicrosoftApp method (Excel)

Activates a Microsoft application. If the application is already running, this method activates the running application. If the application isn't running, this method starts a new instance of the application.

Syntax

expression.ActivateMicrosoftApp (Index)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Index Required XlMSApplication Specifies the Microsoft application to activate.

Example

This example starts and activates Word.

Application.ActivateMicrosoftApp xlMicrosoftWord

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.