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

Pane Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.