The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
Print a list of your Outlook folders
How to create a list of the folders in Microsoft Outlook data files. This code works with any data file in the Outlook profile.
Receive a Reminder When a Message Doesn't Arrive?
Use a run a script rule to set reminders to alert you if a new message (such as routine server alerts) doesn't arrive within a specified time.
Get Outlook's Internet Headers using VBA
Use this code sample and function to display the Internet header of selected message in a new message form.
Use VBA to Scan to Email
How to scan a document or image and attach or embed into an Outlook email using VBA and the Windows Image Acquisition Library (WIA).
Combine and Print Multiple Outlook Calendars
How to copy appointments from several Outlook calendars to print as one calendar. Includes code specific to Exchange server accounts that works with Resource calendars as well as other user's calendars.
Automatically BCC All Messages
Outlook doesn't have a built in method you can use to automatically include yourself (or other email address) in the BCC field when you send a new message. You can use Rules Wizard to CC and address but not to send a BCC.
Warn Before Sending Messages to the Wrong Email Address
Do you accidently send messages to the wrong email address? You can use a VBA macro that checks the outgoing addresses before sending the message.
Adjusting Outlook's Zoom Setting in Email
New to Outlook 365: Remember Zoom Preferences. If the fonts in incoming messages are tiny (or huge), you may have a Zoom problems. I'll show you how to fix it. If you don't have an Office 365 subscription, I have a macro that will set the zoom level for you.
Outlook, Multiple Accounts and the Default Account
When you use Microsoft Outlook 2010 or Outlook 2013 and have multiple accounts delivered to different *.pst files, Outlook doesn’t use the default account set in Account settings. Instead, it uses the account associated with the mailbox or *.pst file the folder you are viewing is stored in. This change in behavior doesn't work well when an IMAP is configured to be the default email account and you have a POP3 account delivered to the default pst file.
Create a Task from an Email using a Rule
Create tasks from email as they arrive using a simple script and Rules Wizard. With a slight variation, you can create a task from the message you are reading in the reading pane. Complete instructions and ready-to-use code samples included.
Send an Email When a Reminder Fires
Another entry in my Lazy Programmer Series, a macro for Outlook users who want to schedule a message to send later. This macro is triggered by a reminder and sends a message, composed from the appointment's subject line and body.
Run a Script Rule: Forwarding Messages
An Outlook user asked how to automatically change the subject of a message and forward it to another address. Using a "run a script" rule is one option and we show you how to do it.
Outlook Categories, Flags, and IMAP Accounts
Categories and flags are not available in all of my folders in Microsoft Outlook. I can use categories and flags on mail in my POP3 account but categories are not available in my IMAP account and flags are limited to one flag, no reminder. Why? The IMAP protocol doesn't support the Category and Flag properties
Shortcuts to open Outlook folders
Outlook doesn't support creating shortcuts to folder on the Quick Access toolbar (QAT) or ribbon, but you can put macro on the QAT or ribbon that opens a folder.
List snoozed reminders and snooze-times
How to use a VBA macro to list all snoozed times for Appointments, Flagged messages, and Tasks.