Excel custom Add-In not loading when instance of Excel is opened by another application

前提是你 提交于 2019-12-25 05:48:04

问题


I have created a custom add-in for Excel and for the most this work fine without any issues.

However, we have a 3rd party application where we can select the option to "Open In Excel". This then loads a new instance of Microsoft Excel with a load of data populated from the application, but does not load the custom add-in.

If I go in to the add-ins option, I can see that Excel still seems to think that the add-in is enabled but I can see that it is not because the macros are not imported to workbook.

I can disable and then re-enable the add-in and it will work just fine. I can also open an Excel document or a new instance manually and it will work as expected. It only ever seems to be an issue when the instance of Excel is opened from this 3rd party application.

I assume that this is because the add-in is bound to my account and the process is being started by another account even though task manager sees it as being a process ran by myself.

If anyone has any ideas as to why this is happening or how to resolve it, I would be very grateful to hear.

来源:https://stackoverflow.com/questions/32076150/excel-custom-add-in-not-loading-when-instance-of-excel-is-opened-by-another-appl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!