Panes Property

Applies To

Window object.

Description

Returns a Panes collection that represents all the window panes for the specified window. Read-only.

See Also

Activate method, Add method (Panes collection).

Example

This example splits the active window in half.

If ActiveWindow.Panes.Count = 1 Then ActiveWindow.Panes.Add
This example activates the first pane in the window for Document2.

Windows("Document2").Panes(1).Activate