Application.ActiveWindow Property

Publisher Developer Reference

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.<strong class="bterm">ActiveWindow</strong>.Caption

End Sub

See Also