Workbook.ActivateEvent Event
Occurs when the workbook is activated.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Event ActivateEvent As WorkbookEvents_ActivateEventHandler
event WorkbookEvents_ActivateEventHandler ActivateEvent
Remarks
When you switch between two windows showing the same workbook, the WindowActivate event occurs, but the ActivateEvent event for the workbook does not occur.
This event does not occur when you create a new window.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.