Share via


Pane.Close Method (Word)

Closes the specified Mail Merge data source, pane, or task.

Syntax

expression .Close

expression Required. A variable that represents a Pane object.

Example

This example closes the active pane if the active window is split.

If ActiveDocument.ActiveWindow.Panes.Count >= 2 Then _ 
 ActiveDocument.ActiveWindow.ActivePane.Close

See Also

Concepts

Pane Object Members

Pane Object