PC Review


Reply
Thread Tools Rate Thread

Calling Addin from Outlook Form

 
 
=?Utf-8?B?U2NvdHR5XzEwMA==?=
Guest
Posts: n/a
 
      20th Jan 2005
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

 
Reply With Quote
 
 
 
 
Ken Slovak
Guest
Posts: n/a
 
      21st Jan 2005
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
>


 
Reply With Quote
 
=?Utf-8?B?U2NvdHR5XzEwMA==?=
Guest
Posts: n/a
 
      21st Jan 2005
Many thanks Ken



"Ken Slovak" wrote:

> 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
> >

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling macro from a different addin =?Utf-8?B?TmF5YW4=?= Microsoft Excel Programming 2 3rd Aug 2007 08:50 PM
Calling Com addin from form button on sheet? Robin Hammond Microsoft Excel Programming 9 8th Jan 2005 03:03 AM
Calling a sub from a addin in vba Roger Microsoft Excel Programming 4 3rd Nov 2003 10:39 AM
Calling an Excel Addin from VBA ABN Microsoft Excel Programming 2 31st Jul 2003 02:33 PM
Calling an Excel Addin from VBA ABN Microsoft Excel Programming 0 31st Jul 2003 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 PM.