Table of contents
TOC
Collapse the table of content
Expand the table of content

Window Object (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Represents a window. Many publication characteristics, such as scroll bars and rulers, are actually properties of the window.

Example

Use the ActiveWindow property to return a Window object. The following example maximizes the active window.

Sub MaximizeWindow 
 ActiveWindow.WindowState = pbWindowStateMaximize 
End Sub

Use the Caption property to return the file and application names of the active window. The following example displays a message with the file name and Microsoft Publisher application name.

Sub ShowFileApNames 
 MsgBox Windows(1).Caption 
End Sub

Methods

Name
Activate
Move
Resize

Properties

Name
Application
Caption
Height
Hwnd
Left
Parent
Top
Visible
Width
WindowState
© 2017 Microsoft