title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Window.Close method (Project) |
project-server |
|
820f202b-d609-02e6-eff4-3368b9f93dd5 |
06/08/2017 |
medium |
Closes a pane or window.
expression.Close
expression A variable that represents a Window object.
The following example closes the lower pane of every open window.
Sub CloseWindowsOfActiveProject()
Dim W As Window
For Each W in Application.Windows
If Not (W.BottomPane Is Nothing) Then
W.BottomPane.Close
End If
Next W
End Sub
[!includeSupport and feedback]