Pane.Close Method

Word Developer Reference

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.

Visual Basic for Applications
  If ActiveDocument.ActiveWindow.Panes.Count >= 2 Then _
    ActiveDocument.ActiveWindow.ActivePane.Close

See Also