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
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Scotty_100" <(E-Mail Removed)> wrote in message
news:229C6C63-2805-46AF-9CA9-(E-Mail Removed)...
> 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
>