Window.Activate Method
Brings the window to the front of the z-order.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Activate As Object
'Usage
Dim instance As Window
Dim returnValue As Object
returnValue = instance.Activate()
Object Activate()
Return Value
Type: System.Object
Remarks
The Activate method won't run any Auto_Activate or Auto_Deactivate macros that might be attached to the workbook. Use the RunAutoMacros method to run those macros.