Creating an Outlook Add-In Part 1 | CodeGuru

Creating an Outlook Add-In Part 1

Introduction Add-Ins are custom programs that helps extend the capabilities of a certain program. For example, we can create add-ins to make Outlook, or any other Office product more powerful. We can add cool features to existing programs. With this article series we will create Outlook Add-Ins to backup our important emails. This article ( […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 29, 2011
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Introduction

Add-Ins are custom programs that helps extend the capabilities of a certain
program. For example, we can create add-ins to make Outlook, or any other Office
product more powerful. We can add cool features to existing programs. With this
article series we will create Outlook Add-Ins to backup our important emails.
This article ( Part 1 ), will concentrate on Outlook 2003 and VB.NET 2003, and
Part 2 will concentrate on Outlook 2007 & Outlook 2010 with VB 2010.

Our Add-In’s Purpose

I made this add-in to save some of the very funny emails I receive, and I
receive a lot. This add-in ( called FunnySave ) will allow us to browse an
outlook folder, which contains all of the email we want to backup ( this can be
any email ), then save them all to disk. Short and sweet; supposedly. We have to
do a lot of work, to make sure we get the right emails as well as to save them in
the proper format. Without any further ado, let us get started.

Outlook 2003 Setup

This step is optional, if you have a separate folder containing all the
email you want to backup already, or you do not want to do it. I have a folder
named Funnies Limbo inside Outlook, specifically to store my funny emails. It
looks like the following picture:

Shared Add-In

Figure 1 – Funnies Limbo

Advertisement

Design & Code

With Add-Ins, we don’t have to design forms, everything is code based.
You may be wondering how are we going to create something like a BrowseForFolder
dialog, or even a button. With code, only with code, as you will see shortly.

Open Visual Studio 2003, and click on File,
New, Project, Shared Add, under
Other Project Types, Extensibility Projects, as shown in the next picture:

Funnies Limbo
Figure 2: Shared Add-In

This will open the Shared Add-In Wizard; let us look at the steps
screen for screen.

Screen 1
Figure 3: Screen 1

Screen 1 just provides some basic information about what is going to happen.

Screen 2, Language Options
Figure 4: Screen 2, Language Options

On the second screen we must choose which language we will use for this
Add-In. Choose Visual Basic.

Screen 3, Select Host Application
Figure 5: Screen 3, Select Host Application

In this screen we must select Microsoft Outlook as the application this Add-In
is for.

Screen 4, Add-In details
Figure 6: Screen 4, Add-In details

Fill in the text fields according to the above picture.

Screen 5, Add-In Options
Figure 7: Screen 5, Add-In Options

A very important thing to remember here, is the bottom checkbox. We must
remember that if we do not choose this, only one user can use it, and not all
the users on one computer. When creating the setup application, we must keep
this in mind.

Summary
Figure 8: Summary

Once we have clicked Finish, Visual Studio will create the project according
to our specifications. Your Solution Explorer will look similar to the following
picture.

Solution Explorer
Figure 9: Solution Explorer

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.