Table of contents
TOC
Collapse the table of content
Expand the table of content

Window.Close Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Closes a pane or window.

Syntax

expression. Close

expression A variable that represents a Window object.

Example

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
© 2018 Microsoft