I have inside an add-in a Userform that has a ComboBox and a ListBox.
Until now both controls have been populated using AddItem method and also the ListBox has been dependent on the item selected in the ComboBox.
I have created a Data sheet in the add-in, typed there all the items that I added with AddItem method and I created several named ranges so as to populate the controls using the named ranges that I created and RowSource method.
The problem is that if the workbook property isaddin is true I get runtime error 380 but if I set isaddin to false the userform controls populate properly with no error code.
I have been searching in this and other forums for a solution and I have been googling for half day to find a solution to this but with no luck.
Any suggestion to fix the issue?
I have tried several things I found to better refer to the named ranges in the addin but with no luck...
Ultimately I can always go back to Additem method as I did before but I can't believe that there is no solution to this issue.
Thanks in advance for any reply.
Bookmarks