Subdocument.Split Method (Word)
Divides an existing subdocument into two subdocuments at the same level in master document view or outline view.
Syntax
expression .Split(Range)
expression Required. A variable that represents a Subdocument object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Range |
Required |
Range object |
The range that, when the subdocument is split, becomes a separate subdocument. |
Remarks
The division is at the beginning of the specified range. An error occurs if the document isn't in either master document or outline view or if the range isn't at the beginning of a paragraph in a subdocument.
Example
This example splits the selection from an existing subdocument into a separate subdocument.
Selection.Range.Subdocuments(1).Split Range:=Selection.Range