|
-
Jun 19th, 2003, 03:36 AM
#1
Thread Starter
Lively Member
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?
-
Jul 8th, 2003, 02:11 PM
#2
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|