Sorting of plug-ins

  • Thread starter Thread starter khai
  • Start date Start date
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.
 
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?
 
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?
 
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.
 
Back
Top