home | get Sue’s code | forums | share code | registration
Brought to you by...

More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Outlook Developer News

Transition at OutlookCode.com

A word from Sue Mosher: I am delighted to announce that, effective immediately, OutlookCode.com is under new management. My fellow Outlook MVP Eric Legault brings to the site a wealth of experience and enthusiasm not just for Outlook development but also for SharePoint. In the future, you can expect to see more content related to how these two platforms can work together.

Outlook has been at the center of my life for more than a decade, and I have greatly enjoyed helping people -- beginners to experts -- explore Outlook as a development platform. However, it is time for me to move on to do other things. You can follow my evolving interests by visiting my Turtleflock web site. Also, I will still be around here to respond to comments on my code samples and follow up on my existing discussion threads.

I wish you all the best of luck in your Outlook endeavors and hope you will give Eric the same support that I've enjoyed over the years.

Convert a business form to an Outlook custom form

Have you ever wanted to convert a business form to electronic transmission using Outlook? In a detailed step-by-step walkthrough, Jimmy shows you how, with plenty of screen shots for every procedure, including tricky techniques like tab order and validation. 

The walkthrough is for a message form, so it assumes that the organization has an Exchange server where the forms can be published, but the basic form design methods are applicable to any type of form.

Another round of sample VSTO add-ins for Outlook

Here are more sample add-ins using Visual Studio 2008 and Outlook 2007:

Outlook and VS2008 on video

Microsoft has a new Office Developer Show series that offers tips on creating applications for Outlook and other Office programs. Some highlights:

  • Episode 2 - how to create a class in an Outlook project to avoid the object model security prompts
  • Episode 4 - a tip about saving and restoring the position of custom toolbars in Outlook 2007
  • Episode 5 - an Outlook add-in that uses the Application.ItemSend event to help users remember to send an attachments

Using the Outlook object model with .NET

Matt Staehle, who works on Microsoft's Messaging Developer Support Team, has been running a series of articles on working with the Outlook object model in .NET languages. Read all the installments to pick up best practices and avoid common mistakes. Code examples are in C#:

From the Forums

Basic Outlook Techniques
Forward email but display form problem
Hi there, I'm trying to write a macro which will act like the "forward" button but not include the attachments. I tried using .forward but it won't create a new window. I tried cheating and using sendkeys "^f" to forward and then using Application.ActiveInspector.CurrentItem...
mark email as unread. when sending on behalf...
When you send on behalf of the email appears in your sent items not in the persons sent items that you are sending on behalf of. I have used the following code that assigns a catagory to all mails sent on behalf of Private Sub Application_ItemSend(ByVal...
Outlook Form Design
finding a value in an excel row
Hi I'm working on an outlook form and need some help on how to search a column in an excel worksheet, find the value and add a value 3 columns to the right. I know I need to use the offset to get to the column but am having some trouble in how to...
Custom Journal Form and Tasks
Hello - I have a notion but need to know if it is even possible before I spend too much time trying to develop something. I work for an IT consulting firm that requires me to transcribe work done into the Outlook Journal. I have been developing a process...
Outlook Expert Techniques
Accessing someone else's shared folder via...
There have been several posts regarding this issue and the solution via GetsharedDefaultFolder method (e.g., http://msdn.microsoft.com/en-us/library/aa220116(office.11).aspx)...
Excel to Outlook Import to Shared Calendar...
Howdy! I've got a shared calendar in which I import employee review data so managers can be reminded when the reviews are due. I have successfully mapped all columns in my Excel 2007 named range to the Outlook 2007 fields; however, "Required Attendee"...
Outlook and .NET
Outlook meeting request
The script works a treat, but I need the script to generate a meeting request in Outlook, not just an appointment. Can anyone help me out. Sorry to post javascript query here. /* Define Outlook constant for Appointment Item */ var olAppointmentItem...
OutLook throws exception when I close the...
Hi, I am creating an AddIn to Outlook using C# 2.0 .I am creating a button in the Outlook window.It is working fine for me.But the problem is when I close the Outlook an exception is happening,from the Event viewer the description is follows. "Faulting...
Code Essentials
Export subject line to Access database
Hi I would like to know how to export the subject line, in a csv format ie. info1,info2,info3,info4, to a access database table? I have the code to intercept the outgoing mail, as Ejay56 have, put what do i put in after that? Regards Gelbert...
Sort alphabetically
I have a list of 30 names in a string separated by "\\\", and I need to sort the list alphabetically. What's the best way to do this? What type of sort works best for this? Thanks, May

Newest Resources

LINQ to DASL: Changing Appointments with C# and LINQ -- Short video that demonstrates how to use VSTO Power Tools to perform a DASL query on the Calendar folder using the LINQ syntax and then perform additional string value checking with a regular expression

Outlook Context Menus and Creating a Meeting from an Email -- Short video demonstrating how to create a context menu command for sending a meeting request to recipients of an email message. Note: The Inspector wrapper class is extraneous and overcomplicates the project.

How to get the IWin32Window for Outlook -- This C# class from Helmut Obertanner could be used to pass the Outlook as parent to .Net Forms and Messageboxes to prevent those UI elements from being hidden by Outlook windows.

Additional custom panel in Microsoft Outlook -- Lukas Neumann uses Windows API techniques to hack the Outlook user interface and add a custom panel in the Explorer window.

New Outlook VSTO AddIn: How to disable Reply To All and Forward in Outlook 2007 -- This very simple add-in adds controls to the ribbon to disable the Forward and Reply to All actions in the MailItem.Actions collection.

Form region demo - categories text box -- This no-code form region for Outlook 2007 adds a Categories text box to received and sent messages.

Outlook Meeting Tracking Export -- Jaz shows how easy it is to write an Outlook macro to export meeting attendee information to Excel.

Use the Right Events for the Right Cases -- Microsoft's Ryan Gregg explains why the Application.ItemSend and Inspector.Close events are more appropriate in some scenarios than the item-level Send and Close events.

Redemption 4.6.0.924 -- Updates this popular, alternative Outlook developer library with an RDOSession.PickFolder method with more features than Namespace.PickFolder. Adds an RDO UserProperties collection for accesing custom item properties. Plus many more new features and bug fixes.

Aspose.Network -- Component suite for .NET development that includes methods to import .msg format data from file or stream without Outlook installed and export Outlook messages to .mht and .eml formats. Includes an Outlook control that can accept Outlook data via drag-and-drop.

Calling into a VSTO Add-in from a COM Smart Tag -- It's not possible to build a smart tag into a VSTO add-in, but McLean Schofield explains how to make it possible for the smart tag to call the add-in's methods.

Deploying Office Solutions with a Setup Project -- Mary Lee highlights the new information available on using Windows Installer to deploy Office 2007 solutions built with Visual Studio 2008.

Two-Way STSSync Protocol Server for Outlook 2007 -- Generic solution from Patrick Creehan to make it easy to build data providers that take advantage of the synchronization built into Outlook

Custom calendar providers for Outlook 2007 -- How to use a web service to make a data source appear in Outlook 2007 as a SharePoint event list.

VSTO Add-ins, COMAddIns and RequestComAddInAutomationService -- Andrew Whitechapel explains how to expose methods in a VSTO add-in that other add-ins (including VBA) can call.

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

Hot Code Samples

Beginner
Save and remove attachments from email items...
Sending a mail message with today's appointments...
Add appointment to other user's Calendar
Intermediate
C# AddIn sample: InspectorWrapper & CommandBar...
Import Appointments FROM Excel
Send Word document as message
Advanced
Set color label on appointment
Avoid Security Propmts / Access MAPI Properties...
CommandBar & ExplorerWrapper c# example

OutlookCode RSS Feeds

All OutlookCode.com content

Outlook developer news

New Outlook developer resources

OutlookCode.com forums

OutlookCode.com code samples

OutlookCode.com articles