This documentation is archived and is not being maintained.

AppEvents_WindowDeactivateEventHandler Delegate 

A Delegate type used to add an event handler for the WindowDeactivate event. The WindowDeactivate event occurs when any workbook window is deactivated.

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

Sub Sub1(Wb As Workbook, _
	Wn As Window)
End Sub
Dim appEvents_WindowDeactivateEventHandler1 As New AppEvents_WindowDeactivateEventHandler(AddressOf Sub1)

public delegate void AppEvents_WindowDeactivateEventHandler(
	[In] Workbook Wb, 
	[In] Window Wn
public delegate void AppEvents_WindowDeactivateEventHandler(
	/*in*/Workbook Wb, 
	/*in*/Window Wn
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.



The workbook displayed in the deactivated window.


The deactivated window.

Development Platforms

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

Target Platforms