Edit

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

Panes Collection 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.