The ActiveWindow property returns the active window object. This is a read-only property.
Syntax
object.ActiveWindow
Example
This example demonstrates how to return the active window.
Debug.Print mvApp.ActiveWindow
Used by: Application object