WindowState Property

Microsoft Publisher Visual Basic

constant indicating the state of the Microsoft Publisher window. Read/write.

PbWindowState can be one of these PbWindowState constants.
pbWindowStateMaximize
pbWindowStateMinimize
pbWindowStateNormal

expression.WindowState

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

When the state of the window is pbWindowStateNormal, the window is neither maximized nor minimized.

Example

This example maximizes the Publisher window.

ActiveWindow.WindowState = pbWindowStateMaximized