The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples

Search for All Messages from Contact and Display in New Window
Victor Beekman wanted to share another macro with our visitors. This is similar to our macros that search for all messages from a contact or sender but instead of doing an "in-place" search, it opens a new window with the results.

Apply Filtered Views Using a Macro
How to use a macro and a userform to create a filtered view on any Outlook folder.
VBA: Get All Contact Details
I often need to copy a Contact's details to share with others and to put into appointments.

Scheduling Drafts in Outlook
How to send draft messages at a scheduled time using a macro in Outlook.
Assign Categories to Messages using Contact Category
Use a macro to apply categories assigned to a contact to the messages they send you.

Macro to automate the Move to Folder command
How to use a macro to mimic the Move to Folder command in Outlook.

Pick Contacts using VBA
Use the following VBA code to create a contact picker to link contacts to tasks. You can change the code to allow for a manual pick of contacts folder, ie not hardcoded. If you have contacts stored in another folder, this change will make it easier to use. To use a folder picker with other

Change Short Date to Long Date Format in a Message
Use a macro to convert a short date format to a long date when you are composing a message.

Create Appointment From Email Automatically
How to use a macro to watch Outlook's Inbox for a message containing appointment details and create a new appointment (or meeting).
Process items in a shared mailbox
You can't run rules on a shared mailbox and client-side rules in a mailbox won't run if Outlook is not open. Use an ItemAdd macro to watch the folder for new items.

Save all incoming messages to the hard drive
There are two ways you can use a VBA macro to save all messages to a hard drive: use an ItemAdd macro to watch for new messages or use a Run a Script rule.
Get the Internet Header VBA Code Sample for Outlook
Use VBA code sample to view Outlook's Internet Header.
Prompt to turn on "Out of Office" replies
If you want to turn on Out of Office every time Outlook is close, you need to use VBA. We have the code, which was tested on Outlook 2007 and 2003.
Copy Selected Occurrence to an Appointment
Use this Outlook VBA code sample to copy recurring events as single appointments when you want to take notes so you can avoid editing the occurrence.
