Pane.Close Method

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub Close
'Usage
Dim instance As Pane

instance.Close()
void Close()

Examples

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

Reference

Pane Interface

Pane Members

Microsoft.Office.Interop.Word Namespace