Share via


Panes.Add Method (Word)

Returns a Pane object that represents a new pane to a window.

Syntax

expression .Add(SplitVertical)

expression Required. A variable that represents a Panes collection.

Parameters

Name

Required/Optional

Data Type

Description

SplitVertical

Optional

Variant

A number that represents the percentage of the window, from top to bottom, you want to appear above the split.

Return Value

Pane

Remarks

This method will fail if it is applied to a window that has already been split.

Example

The following example splits the active window such that the top pane is 30 percent of the total window size.

ActiveDocument.ActiveWindow.Panes.Add SplitVertical:=30

See Also

Concepts

Panes Object Members

Panes Collection Object