Application.ActiveWindow property (Publisher)

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.

Sub CurrentCaption() 
 
 MsgBox ActiveDocument.ActiveWindow.Caption 
 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.