.xlam add-in does not work on other computers giving two workbooks with the same name error

纵饮孤独 提交于 2020-07-10 08:17:20

问题


I created 2 simple macros just to delete some columns and sort the data on Excel. It does not open a file, just works on the active workbook. I saved the macros as .xlam add-in to distribute other team mates.

I also created a custom Ribbon menu. In the ribbon menu I created 2 buttons and assigned my macros one by one. Now, on my computer, when I click on the button in the Ribbon menu, it calls the macro and the macro works perfectly.

When I add the same add-in to my friends' computers it imports the add-in succesfully. It creates a local copy under Add-In file as well.

When it comes to run the macros, however, it gives the following error ""Sorry, excel can't open two of the same workbooks at the same time".

No need to say there is not 2 workbooks with the same name, there is even no other workbooks opened. What could be the problem? Since it is not code related (at least it seems like) I don't share any code here. If you want I can, however, I receive the error as soon as I click on the button in the ribbon menu on my friends' computers. (FYI I created ribbon menu at my friends' computers as well.)

Any help will be appreciated.


回答1:


I was able to resolve this issue by removing all of the menu items associated with the add-in (do so by customizing the ribbon) and then rebuilding the menu items. In my situation the location of the add-in changed resulting in a path issue.



来源:https://stackoverflow.com/questions/57215478/xlam-add-in-does-not-work-on-other-computers-giving-two-workbooks-with-the-same

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