Window.ActivePane Property

Word Developer Reference

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

Syntax

expression.ActivePane

expression   A variable that represents a Window object.

Example

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

Visual Basic for Applications
  With ActiveDocument.ActiveWindow
    .Split = True
    .ActivePane.Next.Activate
    MsgBox "Pane " & .ActivePane.Index & " is active"
End With

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

Visual Basic for Applications
  With Application.Windows(1)
    .Activate
    .ActivePane.View.ShowTabs = True
End With

See Also