Is there an event fired within an Add-In when it is referenced in VBE?
I'm wanting to run some code as soon as the Add-In is referenced similar to on workbookopen.
Thanks
Is there an event fired within an Add-In when it is referenced in VBE?
I'm wanting to run some code as soon as the Add-In is referenced similar to on workbookopen.
Thanks
What kind of add-in and what exactly do you mean by referenced?
Remember what the dormouse said
Feed your head
A .xla add-in.
Set a reference to the add-in in the VBE. Under references.
If it's not already open, that would open it, but there is no specific event you can use for that. Why would you need it?
General set up. E.g. Programmatically adding other references I require to the active workbook etc.
I was hoping there would be something similar to workbookopen but for the add-in.
Is there a reason you can't have the references set in the addin?
The references need to be for the active workbook I am working on at the time.
I feel that we are deviating from the question asked.
I have a feeling the answer to my question is... No, there is no event fired and there is no clever little trick to fire code automatically when an add-in is opened??? :-( would you sat that is correct?
There's no need for an addin to add references to your project.
So there's no connection between having loaded an Addin and doing the things you gave as an example.
But the vaguer your question the vaguer the answers. If you want specific answers please be specific in your question (which you were not in my opinion upto now).
Then you will have to add them yourself - or if it's the same ones each time, add a routine to do it.
Yes - that's why we are deviating - trying to work out what it is you actually need and how to work around it, if possible. If you prefer a simple no, then ... no.I feel that we are deviating from the question asked.
I have a feeling the answer to my question is... No, there is no event fired and there is no clever little trick to fire code automatically when an add-in is opened??? :-( would you sat that is correct?
Haha a simple no will be fine.
What I need to do is run code automatically when an add-in is referenced in the VBE. If that is not possible then what I want to do (in the bigger picture) cannot be achieved.
I have the routine to add the references, this is what needs to be fired when the add-in is referenced itself.
Thank you for you assistance though.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks