This documentation is archived and is not being maintained.

Application.ActiveWindow Property

Office 2007
Returns a Window object that represents the window with the focus. Because Microsoft Publisher only has one window, there is only one Window object to return.

Syntax

expression.ActiveWindow

expression   A variable that represents an Application object.

Example
This example displays the active window's caption.

Visual Basic for Applications
Sub CurrentCaption()

    MsgBox ActiveDocument.ActiveWindow.Caption

End Sub



Show: