Share via


WindowDeactivate Event

Home Page (Objects)OverviewFAQReference

Applies to: Application object

Occurs after a specified window becomes inactive.

Syntax

object**_WindowDeactivate(window)**

Parameters

object

An expression that evaluates to an Application object.

window

The Window object that triggers this event.

Remarks

Developer Studio fires this event after the window becomes inactive.

For an overview about using event code, see the introduction to events.

Example

Following is a sample event handler for the WindowDeactivate event. Copy this into your macro file, and then insert the appropriate code.

sub    Application_WindowDeactivate(theWindow)
   ' Insert code to handle the event here
end sub

See Also   WindowActivate event.