_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.XlMSApplicationRequired XlMSApplication. Specifies the Microsoft application to activate.
XlMSApplication can be one of these XlMSApplication constants:
xlMicrosoftWord
xlMicrosoftPowerPoint
xlMicrosoftMail
xlMicrosoftAccess
xlMicrosoftFoxPro
xlMicrosoftProject
xlMicrosoftSchedulePlus