• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Getting to know OOM, getting to know all about OOM

Slipstick Systems

› Developer › Getting to know OOM, getting to know all about OOM

Last reviewed on May 27, 2014     2 Comments

Most power users of Outlook are aware that it can be customized to a degree. The ability to create custom forms or use VBA macros have been around since Outlook 97 and Outlook 2000, respectively. Even casual users know that COM Add-ins can be built and installed to “add-on” functionality to Outlook which doesn’t exist. So if you’re thinking of becoming an Outlook programmer or are just curious as to what can be done, here’s a summary of the development tools that can be used.

As stated, custom forms and VBA macros are common ways to design new interfaces or program with Outlook – and these are tools available “out of the box”. However, VBA solutions are typically used to automate simple tasks and don’t offer a proper deployment mechanism to install for multiple users. Similarly, traditional custom forms with legacy VBScript code is really a technology well-past its prime. Neither approach is suitable for professional solutions.

So how is a truly professional Outlook solution designed? The most powerful approach available for programmers is to build a COM Add-in. Add-ins allow you to build complex and highly interactive Windows Forms applications using many programming languages and powerful code editors. Add-ins can also be easily deployed for many users using Windows Installer packages or with Click-Once from the web.

For hard-core solutions, the top choice is to build a COM Add-in with Visual C++ using Extended MAPI (Messaging Application Programming Interface). What is MAPI, you may ask? Essentially, it’s the master list of all instructions and commands available for talking to Outlook. Aye, but there’s the rub: good C++ developers are hard to find, as it’s a very complicated language. And the Outlook interfaces in MAPI are extraordinarily complex and require a steep learning curve to understand.

Thankfully, the Outlook Object Model (OOM) is also available for developers. Serving as a “wrapper” layer to talk to MAPI, OOM is far easier to understand and exposes the majority of the objects, events, properties and methods for programmers to use to talk Outlook into doing the crazy things we ask it to do. Those of you familiar with VBA know that your code is using OOM, and it’s also used by VBScript in custom forms. Yet the problem with OOM is that it trades in full access to MAPI for ease of use. Thankfully, there are tools available to fill in these gaps, which we’ll discuss later in Part 2.

Creating COM Add-ins is most commonly done with Visual Studio. Shared Add-ins – named because they can be built to run in any Office application – have been built since Visual Studio 6.0 using Visual Basic 6, and can still be built with Visual Studio 2010. However, these types of add-ins require a lot of additional code to distinguish which application is calling your add-in.

The preferred approach is to use Visual Studio Tools for Office to build a COM Add-in. VSTO was available as a separate install for older versions of Visual Studio but is now built-in to Visual Studio 2010. VSTO provides additional programming shortcuts and useful objects not available in Shared Add-ins. It also has handy designers, wizards and interfaces for customizing the Ribbon, creating Form Regions or implementing custom Task Panes. You still of course have the ability to automate OOM with your VB.NET or C# code, but MAPI is not officially supported.

Next week we’ll take a look at another way of building add-ins, and what other tools are out there for an Outlook developer’s toolbox.

More Information

The Express way, and the road to Redemption… (Part 2)

Getting to know OOM, getting to know all about OOM was last modified: May 27th, 2014 by Eric Legault

Related Posts:

  • The Express way, and the road to Redemption…
  • Using VBScript in Outlook Development
  • Add a date/time picker control to a custom form
  • Outlook Users Discussion List

About Eric Legault

An Outlook developer MVP since 2003, Eric has completed several dozen projects using the Outlook/Exchange/SharePoint platforms, from COM Add-Ins to custom Forms, desktop applications and Windows Service applications. When not working, Eric keeps busy building relationships with technical communities via social media and by contributing to online support forums, writing technical articles and editing technical books and speaking at conferences around the world on Outlook and Office development. Eric Legault+

Subscribe
Notify of
2 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

tiffany
May 13, 2014 1:32 pm

Is it possible to create a template for email senders to use when they send an email to my outlook email? I would like for it to default to the template when they type in my email? Thank you for any advice you may have to offer.

0
0
Reply
Diane Poremsky
Reply to  tiffany
May 13, 2014 3:51 pm

they can use a template on their computer (depending on what email client they use) but once its sent, you can't apply a template.

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 30 Issue 29

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

:wpds_smile::wpds_grin::wpds_wink::wpds_mrgreen::wpds_neutral::wpds_twisted::wpds_arrow::wpds_shock::wpds_unamused::wpds_cool::wpds_evil::wpds_oops::wpds_razz::wpds_roll::wpds_cry::wpds_eek::wpds_lol::wpds_mad::wpds_sad::wpds_exclamation::wpds_question::wpds_idea::wpds_hmm::wpds_beg::wpds_whew::wpds_chuckle::wpds_silly::wpds_envy::wpds_shutmouth:
wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment