Share via


Close Method

Closes a pane or window.

Syntax

expression**.Close**

*expression   *     Required. An expression that returns a Pane or 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

Applies to | Pane Object | Window Object, Windows Collection Object

See Also | PaneClose Method