IsSubdocument 属性

       

如果该属性值为 True,则将指定的文档作为主文档的一篇子文档,在单独的文档窗口中打开。Boolean 类型,只读。

示例

本示例判定 Sales.doc 是否是一篇子文档,然后显示一条消息,表明其状态。

If Documents("Sales.doc").IsSubdocument = True Then
    MsgBox "Sales.doc is a subdocument."
Else
    MsgBox "Sales.doc is not a subdocument."
End If