Application.WindowState property (Project)

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

Syntax

expression.WindowState

expression A variable that represents an Application object.

Remarks

The WindowState property can be one of the PjWindowState constants.

To change the state of a window within the application window, use the WindowState property of the Window object.

Example

The following example minimizes the Project application window.

Sub MinimizeApplicationWindow() 
    Application.WindowState = pjMinimized 
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.