The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
Custom Form Security Changes
Tighter security on Outlook Custom forms breaks VBScript in the forms and some controls. Set a registry key to enable these features.
Create a New Message using an HTML File or Stationery
How to create a new message using Stationery or any HTML file using the standard commands of More Stationery or Insert > Insert as Text command. You can also use a macro or PowerShell to create the message.
Open Hyperlinks in an Outlook Email Message
Use an Outlook macro to open every hyperlink in the selected email message. A version of the macro will open hyperlinks in every message in the selected folder.
Processing Incoming E-mails with Macros
The Rules Wizard is great for a lot of things when automatically processing incoming e-mails. However, when there's that one certain thing that you can't do with it, you can always be the Wizard yourself and write your own rules with VBA. However, one of the greatest challenges for developers programming with Outlook is learning
Use a macro to move Sent Items
Use a VBA macro in Outlook to move IMAP sent items to the Sent items folder on the IMAP server.
Add Contact Information to a Task
Use a macro to add contact information to a task or appointment body.
Use VBA to Email Tomorrow's Agenda
How to use VBA to create and email a daily agenda with your upcoming appointments, each evening. You can also use VBA to automate adding your availability to a message.
Create Appointments Using Spreadsheet Data
Use an Excel macro to create appointments in subcalendars in Outlook. To use, type the appointment data, including the calendar name, into the spreadsheet then run the macro. The macro creates appointments in the correct calendar folder.
How to Insert the Date and Time into an Outlook Item
One often requested feature that is missing in older versions of Outlook is ability to insert a date and time stamp into the body of Outlook items. Beginning with Outlook 2007, Word's insert Date & Time button was added to Outlook's Insert tab; older versions will need to a custom form or an add-in to
Search your Contacts using PowerShell
Use PowerShell to search for Contacts with a value in a default or custom Contact field. While you can do a more complicated search within Outlook, you will need to use PowerShell (or VBA) if you want to search for a value in a custom field.
Talking Reminders
Forgetting appointments because you don't see the reminder? Let Outlook read the reminders to you! You can use the same method to read the subject of incoming mail.
Hide LinkedIn, Facebook, Google and extra contact folders in Outlook.com
How to hide extra Contact folders, left from previously linking contact sources with Outlook.com accounts, so they aren't visible in Outlook or on smartphones.
Create a Hyperlink on an Outlook Custom Form
If you need clickable links in a custom form, you can use VBScript code and a Label field or Command buttons to make clickable links.
Limit the number of appointments per day
Anyone who has a lot of meetings can understand this user's request: the ability to limit the number of meetings users can schedule with him each day by making Free/Busy appear busy.
Filter messages containing spam or other words
How to use an Outlook macro to move or delete messages containing spammy keywords.