Workbook.Container (Excel)

Returns the object that represents the container application for the specified OLE object. Read-only object.

This property provides a way to access the object model of the container application if an Excel workbook is opened within a host application such as Microsoft Internet Explorer.


Dim objContainer As Object
Set objContainer = ActiveWorkbook.Container