Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1002 Bytes

Word.Selection.NextSubdocument.md

File metadata and controls

50 lines (30 loc) · 1002 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Selection.NextSubdocument method (Word)
vbawd10.chm158663170
vbawd10.chm158663170
Word.Selection.NextSubdocument
e8527994-23f4-c9a1-d96c-c2018e07efad
06/08/2017
medium

Selection.NextSubdocument method (Word)

Moves the selection to the next subdocument.

Syntax

expression. NextSubdocument

expression Required. A variable that represents a Selection object.

Remarks

If there isn't another subdocument, an error occurs.

Example

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

See also

Selection Object

[!includeSupport and feedback]