Export (0) Print
Expand All

Document.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 a Document object.

Example
This example displays the active window's caption.

Visual Basic for Applications
Sub CurrentCaption()

    MsgBox ActiveDocument.ActiveWindow.Caption

End Sub



Community Additions

ADD
Show:
© 2014 Microsoft