Subdocuments Collection Object
Word Developer Reference |
A collection of Subdocument objects that represent the subdocuments in a range or document.
Remarks
Use the Subdocuments property to return the Subdocuments collection. The following example expands all the subdocuments in the active document.
Visual Basic for Applications |
---|
|
Use the AddFromFile or AddFromRange method to add a subdocument to a document. The following example adds a subdocument named "Setup.doc" at the end of the active document.
Visual Basic for Applications |
---|
|
The following example applies the Heading 1 style to the first paragraph in the selection and then creates a subdocument for the contents of the selection.
Visual Basic for Applications |
---|
|
Use Subdocuments(Index), where Index is the index number, to return a single Subdocument object. The following example displays the path and file name of the first subdocument in the active document.
Visual Basic for Applications |
---|
|
See Also