Load-On-Demand Add-In Not Loaded by Permanent CommandBarButton

M

Matthew Wieder

I am writing an "automation add-in" for Excel in C#. This type of add-in
only loads on-demand, but my issue exists for a com add-in that is set to
load on demand as well. The first time the Add-In is connected, I have it
create a CommandBarButton that is permanent (the last param of the Add method
is the permanence of the CBB). Then Excel can be shut down and the
commandbarbutton still remains the next time Excel is started. However, when
I click on the button after restarting Excel, the Add-In does not load. The
documentation seems to indicate that Load on demand would Load the Add-In the
first time it is needed - either by activating a fomula from that Add-In, or
pressing a button that uses the add-in.
 
M

Matthew Wieder

Actually, I can't - as I mentioned - I have an "automation add-in" the load
behavior as defined by Microsoft is Load on Demand and cannot be changed. I
just mentioned that the behavior I described can be replicated by a regular
Com Add-In set to Load on Demand as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top