Attaching a File or an Outlook Item to an Outlook Message

Attaching a file to a Microsoft Outlook mail item is one of the most popular customer actions in Outlook.   Naturally, many power users also ask how to do this programmatically. The Outlook object model provides the Attachment object, Attachments.Add method, and an Attachments property for each of the Outlook item objects (for example, mail, appointment, contact, meeting,…

0

Automating Highlighting of Search Results in an Outlook Message

Do you know about the new Outlook add-in that automates highlighting of your search string in an email message? The Visual How To, Automating Search Highlighting in Outlook 2010, provides a real add-in that you can build in Visual Studio and run with Outlook 2010, and that improves your experience searching for email content. Read…

0

How Do I Extend Outlook to Do…

Frequently we come across the question “How do I extend Outlook to do <a task>”. Depending on how extensive the task is, you might look for your answer in one or more of the following ways: Use a search engine to see if someone has posted a solution to a similar question on the Internet….

1

How to Search for a String in an Outlook Email Message and Automate a Reply that Contains the String

I’d like to demonstrate a technique that helps automating email replies – when creating a reply to a message, search for a specific string, such as a reference number or item number, from the original message; dynamically create a greeting using the search result, and then automatically insert the greeting in the reply. This technique…

0

How to Log On to a Specific Profile in Outlook 2010

You can use the Outlook object model to log on to a custom MAPI profile or the default profile.  When you first start Outlook on a computer, if you would like to programmatically log on to a custom profile (that is different from the default profile), you can use the Logon method of the NameSpace…

0

Tips for Filtering Items Using Date-time Comparison

In my recent posting about a time-reporting macro, I mentioned a workaround to have the macro include appointments that fall outside of the normal work hours set in the Outlook Options dialog box. Alert: If you have appointments in your date range that start and end before the beginning of work hours you have specified…

0

Improving Outlook Performance (Part I): Video and Sample Add-In to Show Setting and Getting Multiple Custom Properties

Microsoft Outlook supports properties for items and folders. For example, a MailItem object has built-in properties such as the To, Subject, and Body properties, and a Folder object has built-in properties such as the Name and CurrentView properties. Developers can create custom properties for items and folders as well. Improving performance has been a major…

0

A Simple Macro to Track Your Time in the Outlook Calendar

The Scenario Do you sometimes wonder how time slipped by during the work day, and you can’t recall what projects you worked on or how much time you spent on them? I usually record how I spend my time in the Outlook calendar. For example, today, I did the following: ·         I spent one hour…

3

New Managed Code Examples for Outlook 2010

With the announcement of Microsoft Office 2010 being released to manufacturing (RTM) today, I’d like to bring your attention to the new Microsoft Outlook 2010 Primary Interop Assembly (PIA) Reference. For those of you familiar with developing managed solutions for Outlook, you now have on MSDN a currently most up-to-date set of managed documentation for…

0