Document.IsSubdocument (Word)
True if the specified document is a subdocument of a master document.
If Documents("Sales.doc").IsSubdocument = True Then
MsgBox "Sales.doc is a subdocument."
Else
MsgBox "Sales.doc is not a subdocument."
End If