Pane.Close method (Word)
Closes the specified Mail Merge data source, pane, or task.
expression.Close
expression Required. A variable that represents a 'Pane' object.
This example closes the active pane if the active window is split.
If ActiveDocument.ActiveWindow.Panes.Count >= 2 Then _
ActiveDocument.ActiveWindow.ActivePane.Close
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.