Window.WindowState property (Project)

Gets or sets the state the window, where the state is maximized or normal. Read/write PjWindowState.

Syntax

expression.WindowState

expression A variable that represents a Window object.

Remarks

The WindowState property can be one of the following PjWindowState constants: pjMaximized or pjNormal. The pjMinimized value has no effect on a window within the Project application.

To change the state of the application window, use the WindowState property of the Application object.

Example

The following example maximizes the active window.

Sub MaximizeProjectWindow() 
 ActiveWindow.WindowState = pjMaximized 
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.