I am adding an Excel Worksheet object inside Word. Excel has a COM addin attached to it. Any idea how one can know whether Excel is running independently or as an embedded object?
The COM Addin attached to Excel loads when the embedded Excel object is activated (double-clicked) inside Word. I am looking for some kind of a property or a parameter in OnConnection(…) or other method that can tell the state of Excel object.
Try the
UserControlproperty of theApplicationobject.It has been a long time since I had to use this property, so I am not sure it will help in your specific case.