This documentation is archived and is not being maintained.

DocEvents_Event.Activate Event 

Occurs when a worksheet is activated.

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

WithEvents docEvents_Event1 As DocEvents_Event
Function docEvents_Event1_Activate() As Void
	Handles docEvents_Event1.Activate
End Function

event DocEvents_ActivateEventHandler Activate;
 void add_Activate(DocEvents_ActivateEventHandler handler);
 void remove_Activate(DocEvents_ActivateEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms