Pane.Activate Method

Word Developer Reference

Activates the specified pane.

Syntax

expression.Activate

expression   Required. A variable that represents a Pane object.

Example

This example splits the active window and then activates the first pane.

Visual Basic for Applications
  Sub SplitWindow()
  With ActiveDocument.ActiveWindow
    .SplitVertical = 50
    .Panes(1).Activate
  End With
End Sub

See Also