title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Selection.NextSubdocument method (Word) |
vbawd10.chm158663170 |
|
|
e8527994-23f4-c9a1-d96c-c2018e07efad |
06/08/2017 |
medium |
Moves the selection to the next subdocument.
expression. NextSubdocument
expression Required. A variable that represents a Selection object.
If there isn't another subdocument, an error occurs.
This example switches the active document to master document view and selects the first subdocument.
If ActiveDocument.Subdocuments.Count >= 1 Then
ActiveDocument.ActiveWindow.View.Type = wdMasterView
Selection.HomeKey unit:=wdStory, Extend:=wdMove
Selection.NextSubdocument
End If
[!includeSupport and feedback]