The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
How to Open Outlook Templates and Files using Toolbar Buttons
How to create a toolbar button in Outlook 2007 or Outlook 2010 to open templates and files and disable the security warning dialog that displays before the template or files opens.
Remove [External] from Message Subject
A user wanted to know how to remove [External] from the subject of incoming messages. My company recently instituted the policy that puts the [EXTERNAL] tag in every subject when an email is received from outside the organization. When it's only one email, it's not really an issue. However, when it turns into a thread
Automatically change Appointment categories using VBA
How to assign a category to appointments automatically, as soon as they are over, using a macro with a trigger, such as the meetings own reminder or the next appointment reminder, that will kick off the macro.
Rename Outlook Attachments
This macro allows you to rename attachments on incoming or outgoing messages.
Parsing text fields in Outlook
How to use Len, Left, Right, Mid, and InStr to extract text from Microsoft Outlook fields and message bodies.
Enable Contacts as Address Book using VBA
A user with way too many contact folders created a new profile and none of the contact folders were listed in the Address Book menu. With more than 200 contacts folders, it would take several hours to enable each folder manually. I had a macro that needed just a little tweaking to set the folders
Assign a custom form to existing Outlook items
Use this VBA macro as an alternative to DocMessageClass for changing an Outlook item's message class.
How to use Windows File Paths in a Macro
How to choose the file path when you save an Outlook attachment or a message using a VBA macro.
Resize images in an Outlook email
Use a VBA macro to resize large images in received email.
Format Images in Outlook Email
This variation of the Resize Images in Email macro puts a border and shadow around all images in the message you are composing.
Automatically Create Contacts From Messages
This macro will go through the messages in a folder and create a contact for each sender A user needed to solve this problem: My contact list on a prior system was deleted. I imported all of my emails into my new Microsoft Outlook 2003 but going through all the emails individually to add contacts
Set Outlook Online or Offline using VBScript or PowerShell
How to use PowerShell, VbScript or VBA to set Outlook to work offline.
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.
Delete duplicate messages using a macro
Use a macro to clean up duplicates messages in an Outlook folder.
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.