Window.ActivePane property (Word)

Returns a Pane object that represents the active pane for the specified window. Read-only.



expression A variable that represents a Window object.


This example splits the active window and then activates the next pane after the active pane.

With ActiveDocument.ActiveWindow 
 .Split = True 
 MsgBox "Pane " & .ActivePane.Index & " is active" 
End With

This example activates the first window and displays tabs in the active pane.

With Application.Windows(1) 
 .ActivePane.View.ShowTabs = True 
End With

See also

Window 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.