_Application.ActivateMicrosoftApp Method

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.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub ActivateMicrosoftApp ( _
    Index As XlMSApplication _
)
'Usage
Dim instance As _Application
Dim Index As XlMSApplication

instance.ActivateMicrosoftApp(Index)
void ActivateMicrosoftApp(
    XlMSApplication Index
)

Parameters

  • Index
    Type: Microsoft.Office.Interop.Excel.XlMSApplication

    Required XlMSApplication. Specifies the Microsoft application to activate.

    XlMSApplication can be one of these XlMSApplication constants:

    xlMicrosoftWord

    xlMicrosoftPowerPoint

    xlMicrosoftMail

    xlMicrosoftAccess

    xlMicrosoftFoxPro

    xlMicrosoftProject

    xlMicrosoftSchedulePlus

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace