PreviousSubdocument 方法

       

将区域或选定内容移至前一个子文档。如果没有前一个子文档,则导致出错。

expression.PreviousSubdocument

expression   必需。该表达式返回一个 RangeSelection 对象。

示例

本示例将活动文档切换到主控文档视图,并选定前一个子文档。

If ActiveDocument.Subdocuments.Count >= 1 Then
    ActiveDocument.ActiveWindow.View.Type = wdMasterView
    Selection.EndKey Unit:=wdStory, Extend:=wdMove
    Selection.PreviousSubdocument
End If