These articles are in the Developer and Code Sample categories. These pages often contain only the code, with very little instructions and assume the reader has some VBA knowledge. See How to use the VBA Editor if you need help using VBA.
Additional code samples are at VBA Code Samples
Move email items based on a list of email addresses
This code sample shows how to load the contents of a text file into an array then use the array to do something, in this example, to move messages to a new folder.
Move New Appointments and Contacts to iCloud
This macro is used to move new appointments, meetings, and contacts from the default calendar and contacts folders to the iCloud folders. In most cases, it will work "out of the box" but if you changed the name of your iCloud calendar, you'll need to fix the name in the macro. Dim WithEvents imapCalendar As
Create Task or Appointment and Insert Selected Text
An Outlook user wanted to know how to create a task from an email message but only include the actionable part of the message in the task. Easy: drag the selection to the Task or Calendar folder or use a macro.
Create Tasks from Email and move to different Task folders
Use this macro to create tasks from email messages and move them to different task folders.
Create an Outlook Appointment from a Message
A VBA code sample that creates an appointment from an email message and adds it to a shared calendar or a calendar in another data file.
How to set a flag to follow up using VBA
You can edit the Flag to Follow up field text each time you flag a message, but you can't save the changes permanently, or even temporarily in an MRU list. However, you can use VBA to set flags, which will allow you to save custom Flag to text, as well as custom reminder times and start or due dates.
Update Contacts with a New Company Name and Email Address
It can be a real hassle to update contacts when a company changes their name and domain. While it's actually really easy to change the company name by using group by company view and dragging contacts to a new group, you can't change the email address field using this method.
Update Contact Area Codes
Use a macro to update the area code on Outlook Contacts.
Save Outlook Email as a PDF
How to use VBA to save selected Outlook messages as PDF files.
Use a run a script rule to mark messages read
A simple run a rule script marks Outlook messages read when the message body begins with certain words.
Save and Rename Outlook Email Attachments
Use a macro to save attachments on Outlook email messages to a folder on your hard drive and add the files last modified date to the filename.
Personalize messages using the recipients display name
You can use macros to fill in merge fields, either pulling from contacts or as the macros below do, from the display name in the To field. I send emails created from templates all the time but I still have to type in the greeting every time. Is there a way to get the names
Change the image on a Business Card based on the Category
Use VBA code to change the image on Outlook's business cards to match an image for a category. Works with other fields too, such as company.
Save and Delete Attachments from Outlook messages
The following is the Save Attachment code sample from Teach Yourself Outlook 2003 in 24 Hours. (It works in current versions.) Frank modified the code to break it into a single call for each mail item so you can use it with a rule to filter incoming mail. Augusto modified Frank's code "in order to avoid
Close a Meeting When the Room is Full
A user had a request: an automated way of telling people a meeting full. It's not an unusual request, 3 or 4 people ask me how to do this each year. This time it sounded like a fun project to do. I am in charge of organizing meetings for my company (150+ people). However, depending