ActivateMicrosoftApp Method

Applies To

Application Object.

Description

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

Syntax

object.ActivateMicrosoftApp(index)

object

Required. The Application object.

index

Required. Specifies the Microsoft application to activate (one of xlMicrosoftWord, xlMicrosoftPowerPoint, xlMicrosoftMail, xlMicrosoftAccess, xlMicrosoftFoxPro, xlMicrosoftProject, or xlMicrosoftSchedulePlus).

Example

This example starts and activates Word.


Application.ActivateMicrosoftApp xlMicrosoftWord