I have an excel COM add-in that have quick access toolbar with element that i can execute by clicking on it. Right now I want to write VBA macro that executes this element multiple times. I am trying to get to this add-in elements with this lines:
Dim addinModule As Object
Set addinModule = Application.COMAddIns.Item("MyExcelAddin").Object
But all I can get is error that says "Run-time Error 9: Subscript out of range"
I can't add it in tools-> references, in COM-Addins section in developer mode it is loaded.
Regards