Calling Addin from Outlook Form

S

Scotty_100

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
 
K

Ken Slovak

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
 
S

Scotty_100

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
 

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