How to dected Excel was starting by automation (VSTO Addin context)
问题 Context: I'm running a VSTO Excel application context addin and I will load my addin also when MS Excel was started by an other process for automation in visible mode. So now, it's necessary to know if MS Excel was started by an other process with automation e.g CreateObject() ExcelApplicatoin.Visible =true ("/automation -embedding") At the the moment, I evaluate the following Excel Property: ThisAddIn.Application.UserControl But when MS Excel is started during CreateObject the property is