Results 1 to 2 of 2

Thread: Outlook COM add-in

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    103

    Outlook COM add-in

    I want to create a facility in Outlook so users can save e-mails in the right place on our system by clicking a button on the Outlook control panel. The program will then look up the e-mail address in a DB and use that to work out where to put it.

    I would do it through VBA, but it has to run on Outlook 2000, and virus warnings come up as soon as I try to access the properties of the MailItem. Microsoft advise that you can avoid this by using a COM add-in made in VB. Problem is, I'm not sure what that is. VB 6 Pro has the option to create an 'AddIn' project, but that seems to be for customising VB itself.

    I think I need to make an ActiveX DLL, then reference it from an Outlook VBA macro with something like Set SaveThisEmailRoutine = Server.CreateObject("myDLL.SaveEmailRoutine")

    That way I'm hoping that when the DLL interacts with the MailItem, it won't go confusing my poor users with messages about viruses.

    Can anyone tell me if I'm heading in the right direction, or is this a load of old cobblers?

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    ActiveX = Com they're the same thing so any project types you see which have ActiveX mentioned in them, when you open vb are fine to use.

    You're going down the right road choosing the dll project, as far as how to reference the dll from outlook vba - look at my posts on this thread.

    http://www.vbforums.com/showthread.p...l&pagenumber=2

    Note - I'm not sure from the top of my head where the references submenu is in the outlook vb editor, this could be under the project or tools menus...

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width