Pane.Activate method (Word)

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.

Sub SplitWindow() 
 With ActiveDocument.ActiveWindow 
 .SplitVertical = 50 
 .Panes(1).Activate 
 End With 
End Sub

See also

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