S
steve
Hi All
I have a com addin written in VB6 which I would like to disconnect as
Outlook is closing.
If I don't I get the microsoft message 'Microsoft outlook has encountered a
problem and needs to close'
Disconnecting the Addin from within Outlook first solves this problem.
I would thus like to do this in Outlook vba code.
I have tried the following in the Application.quit event....
Application.COMAddIns.Item("myAddin.Connect").Connect = False
I have also tried.....
Public WithEvents oexplorer As Outlook.Explorer
then in the oexplorer.close event
Application.COMAddIns.Item("myAddin.Connect").Connect = False
neither works
Any ideas?
regards
Steve
I have a com addin written in VB6 which I would like to disconnect as
Outlook is closing.
If I don't I get the microsoft message 'Microsoft outlook has encountered a
problem and needs to close'
Disconnecting the Addin from within Outlook first solves this problem.
I would thus like to do this in Outlook vba code.
I have tried the following in the Application.quit event....
Application.COMAddIns.Item("myAddin.Connect").Connect = False
I have also tried.....
Public WithEvents oexplorer As Outlook.Explorer
then in the oexplorer.close event
Application.COMAddIns.Item("myAddin.Connect").Connect = False
neither works
Any ideas?
regards
Steve