See Also

Methods, Properties, and Events:

WindowChanged

ActiveX and VBA Developer's Guide:

"Use Events"