Calling Addin from Outlook Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I'm trying to use an Outlook Com Addin to send a new message and avoid the
Object Model Guard. I want to pass a function from the addin a number of
parameters from a form and the addin to send the message. I'm having real
trouble accessing the public function. Can anyone please provide some details
as to where the function should be declared. I've tried in a class module and
also a separate module but I seem to be loosing the application object passed
on the OnConnection event. Any help or code examples would be greatly
appreciated.
I'm using Outlook 2002 and VB 6.
Many thanks
Scott
 
Put it in your designer as Public and make sure in On_Connection to set the
AddInInst.object that is passed to Me.

AddInInst.object = Me
 
Many thanks Ken



Ken Slovak said:
Put it in your designer as Public and make sure in On_Connection to set the
AddInInst.object that is passed to Me.

AddInInst.object = Me
 
Back
Top