Add Method (Panes Collection)
Applies To
Panes collection object.
Description
Adds a new pane to a window.
Syntax
expression.Add(SplitVertical)
expression Required. An expression that returns a Panes object.
SplitVertical Optional Variant. A number that represents the percentage of the window, from top to bottom, you want to appear above the split.
Remarks
This method will fail if it's applied to a window that's already been split.
See Also
SeekView property, Split property, SplitSpecial property, SplitVertical property.
Example
The following example splits the active window such that the top pane is 30 percent of the total window size.
ActiveWindow.Panes.Add SplitVertical:=30