Container Property Example
This example displays the name of the container application for the first shape in the active document. For the example to work, this shape must be an OLE object.
Msgbox ActiveDocument.Shapes(1).OLEFormat.Object.Container.Name