ActiveWindow Property
Home Page (Objects) | Overview | FAQ | Reference
Applies to: Application object, Document object, TextDocument object
Gets the Window object associated with the active window.
Syntax
object**.ActiveWindow**
Parameters
object
An expression that evaluates to one of the objects in the Applies To list above. When you access the ActiveWindow property of the Application object, you can omit object because the name of the Application object is implied when you access its properties and methods.
Remarks
The ActiveWindow property has the Window type.
If you access the ActiveWindow property of the Application object, you get the currently active window inside the Developer Studio frame. If you access the ActiveWindow property of the Document or TextDocument object, you get the most recently active window on the document associated with the object.
Example
The following example gets the Window object associated with the active window:
Dim Wnd
Set Wnd = ActiveWindow