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
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for