Sorting of plug-ins

K

khai

Hi,

Is it possible to sort the order in which plug-ins are being executed?
i.e. make one plug-in run before another?

Thanks.
 
K

khai

What should I do then, if I have 2 plug-ins, but would like one to run before
another?

Do I have to combine these 2 plug-ins as one?
 
K

khai

Is it possible to write a wrapper plug-in to wrap the 2 plug-ins, and
therefore sequence the order in which these plug-ins are executed?
 
K

Ken Slovak - [MVP - Outlook]

I'd probably just use one addin and do any sequencing of code operations as
desired in that one addin.

If you must have 2 or more addins you can initially set the ones that should
be loaded in order to have a LoadBehavior value of 2 in the registry. That
will prevent them from loading when Outlook starts. An addin that starts
normally would then do something like this when it wants to start the other
addins where olApp is your Outlook.Application object:

Dim oAddin As Office.COMAddIn
Set oAddin = olApp.COMAddIns("MyFirstAddin")
oAddin.Connect = True

That will start that addin. You can repeat for the other one with that one's
name.

To shut them down you'd use similar code but set Connect to False.
 

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