WindowState Property

Microsoft PowerPoint Visual Basic

WindowState Property

       

Returns or sets the state of the specified window. Read/write 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