This documentation is archived and is not being maintained.

WorkbookClass.Deactivate Event 

This event supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

WithEvents workbookClass1 As WorkbookClass
Function workbookClass1_Deactivate() As Void
	Handles workbookClass1.Deactivate
End Function

public virtual event WorkbookEvents_DeactivateEventHandler Deactivate;
public  void add_Deactivate(WorkbookEvents_DeactivateEventHandler handler);
public  void remove_Deactivate(WorkbookEvents_DeactivateEventHandler 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