HostObject Method
Object List Next Object
Defined By: ObjectTools
Description:
Returns an embedded object’s host object.
Declaration:
Function HostObject(ByVal embed As Object)As Object
Details:
If embed is in fact an embedded object, HostObject returns the object that contains embed. If embed is actually a top-level object, HostObject returns Nothing. Since it is not
an error to call HostObject with a top-level object as its argument, HostObject
serves two purposes: determining whether the given object is embedded or
top-level; and getting the host object of an embedded object.
See Also:
EmbedObject, FindEmbed