Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create a COM Add-In for Outlook from an Outlook VBA Project

Posted on 2004-08-23
3
Medium Priority
?
879 Views
Last Modified: 2012-06-21
I wrote some VBA code in MS Outlook, and I'd like to take the code and create COM add-in so that the deployment of the code is easier and more secure.  I've never created a COM add-in before and I'm having a lot of difficulties with coding this type of project.  I'm using Visual Basic 6 as the development environment.  Do you have any tips for taking code from an Outlook VBA Project and using that code to create a COM add-in?
0
Comment
Question by:Scotto13
3 Comments
 
LVL 15

Expert Comment

by:will_scarlet7
ID: 11874399
Have you read this already?

http://support.microsoft.com/?kbid=291163
0
 

Author Comment

by:Scotto13
ID: 11875393
will_scarlet7,

Yes, I've read the article that you posted.  I've also been reading chapters in several Outlook Programming books, and I cannot seem to take the information provided and apply it to the VBA code that I've already written.  I'm reading "Building Applications with MS Outlook version 2002" and it says that you can basically copy and paste your VBA Code into a New Add-in Project using Office XP Developer.  I do not have XP developer.  I'm trying to create the COM-Addin using Visual Basic 6, and I'm looking for the copy and paste solution!  Does it exist?
0
 

Accepted Solution

by:
MikeJordan earned 1500 total points
ID: 11881417
Hi! You might find the below link helpful. It doesn't directly cover Outlook, but gives examples on creating an add-in with other Office programs, the downloadable executable: odc_comaddinvb6.exe is also quite similar to the "COM ADD-IN.VBP" template available with Office Developer.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_comaddinvb6.asp

I think that you should pretty much be able to paste in your functionality code from VBA, the main thing would be that you'll need to handle the registering/unregistering of your object and also be able to respond to the COM events described in this article as well as the one listed above.

Hope that's a help in some way! -- Mike
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question