NextSubdocument 方法 (Word)Selection.NextSubdocument method (Word)

将所选内容移至下一个子文档。Moves the selection to the next subdocument.


expression.expression. NextSubdocument

_表达式_是必需的。expression Required. 表示 Selection 对象的变量。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 
End If

另请参阅See also

Selection 对象Selection Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.