Share via


WindowState Property

PpWindowState

PpWindowState can be one of these PpWindowState constants.
ppWindowMaximized
ppWindowMinimized
ppWindowNormal

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 ppWindowNormal, the window is neither maximized nor minimized.

Example

This example maximizes the active window.

Application.ActiveWindow.WindowState = ppWindowMaximized

Applies to | Application Object | DocumentWindow Object