The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
VBA Sample: Do Something When Reply is Clicked
How to "do something" when you click the Reply, Reply All, or Forward button. Add a category, change the subject, add a recipient, add boilerplate text.
Embed Images in New Messages using a Macro
How to use a macro to embed images in a folder into a new Outlook email message and send it. Send either one image per message or embed all images in the folder into one message.
Warn Before Deleting a Contact
Use a VBA macro to warn before deleting (or moving) a contact in classic Outlook.
How to Hide or Delete Outlook's Default Folders
Step-by-step instructions you can use to delete or hide the default folders (such as the junk email and suggested contacts folders) that Microsoft Outlook creates in your data files.
How to prevent changes to Outlook views
It's not hard to image this scenario: you create a custom view, everything is just the way you like it. Then you accidentally sort by a different column. Outlook saves the changes and your perfect view is ruined. In the early versions of Outlook, users were presented with a "Do you want to save changes?"
Delete Old Calendar Events using VBA
A VBA macro for classic Outlook to remove "clutter appointments", such as delivery notification, focus time, or other old events I don't need on my calendar.
Imported Addresses are Missing from Address Book
Addresses imported into the Contacts folder may not appear in the Address Book display.
Use PowerShell to Delete Attachments
How to use PowerShell to delete large attachments from all messages in a classic Outlook folder or all attachments from selected messages in any classic Outlook folder.
Count Selected Messages
How to get a count of the messages you have selected in Outlook, using a macro or copy and paste.
Remove Attachments From Messages
How to remove attachments from selected messages in Microsoft Outlook's Sent Items folder using VBA.
Get Outlook's Internet Headers using VBA or PowerShell
Use this code sample and function to display the Internet header of selected message in a new message form.
Remove or Change RE: and FWD: Prefixes
A VBA macro for classic Outlook to change the prefix on messages when the Reply and Forward prefixes are different, such as AW: instead of RE:. It can also be used to remove or change other prefixes, such as External:.
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.
Change the Mailing Address Using PowerShell
How to use PowerShell to bulk change the Mailing Address selector (or move the address to a different address field) in classic Outlook's contacts.
Show the Home Address on a Contact Form by Default
How to customize Outlook Contacts so that the Home address is the default address for all new contacts.