Panes.Add method (Word)
Returns a Pane object that represents a new pane to a window.
expression.Add (SplitVertical)
expression Required. A variable that represents a 'Panes' collection.
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. |
Pane
This method will fail if it is applied to a window that has already been split.
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
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.