The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
How to create a map or driving directions to one or more Outlook Contact's address or Meeting locations using VBA.
I have a macro that defers sending messages that are composed during a specific time period, such as during the overnight hours. After several users asked how to send responses or forward messages if the new messages arrived during the overnight hours, it's time to add macros for incoming messages as well. I would like
Getting text out of a message body isn't as hard as it sounds, provided there is something in the body to search on. For example, if you are looking for a tracking code in an email and it's always identified as "Tracking code:" , you can use VB functions or RegEx to get the string.
Using VBA, you can automatically create a series of Outlook tasks based on a task or appointment. You can create the tasks leading up to an appointment or task or following an appointment or task.
Use a macro to clean up duplicates messages in an Outlook folder.
A user had a number of calendars, both in his own mailboxes plus a handful of shared calendars. While Outlook can search all of the calendars, he wanted an easy way to restrict the searches to specific calendars and also see which calendar the appointment was on. The solution: a macro. We used the macro
How to copy appointments from several Outlook calendars to print as one calendar. Includes code specific to Exchange server accounts that works with Resource calendars as well as other user's calendars.
After importing IMAP folders to Personal Folders or an Exchange mailbox, messages in the imported folder are hidden.
A major complaint about Outlook's conversation view is the inability to split and merge conversations. While Outlook doesn't offer the capability, you can use a macro to merge or split conversations.
How to use VBA to create a list of your color categories then merge or restore the list to another account using a second macro.
Outlook doesn't support creating shortcuts to folder on the Quick Access toolbar (QAT) or ribbon, but you can put macro on the QAT or ribbon that opens a folder.
Use a VBA macro to resize large images in received email.
Categories and flags are not available in all of my folders in Microsoft Outlook. I can use categories and flags on mail in my POP3 account but categories are not available in my IMAP account and flags are limited to one flag, no reminder. Why? The IMAP protocol doesn't support the Category and Flag properties
How to add a file number to the subject line of an Outlook message using VBA. (Sample macro included.)
How to assign, change, or remove folder permissions in an Exchange mailbox using Outlook VBA and Redemption.