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
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.
Set Outlook Online or Offline using VBScript or PowerShell
How to use PowerShell, VbScript or VBA to set Outlook to work offline.
Delete duplicate messages using a macro
Use a macro to clean up duplicates messages in an Outlook folder.
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.
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 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).
Macro to Export Outlook Fields to Excel
Use a macro to write Outlook values to an Excel spreadsheet.
Create a Task when a Message is Flagged
Use the ItemChange event to run a macro when an Outlook item is changed. In this example, a task is created when the Quick Click Flag is clicked.
Use a Macro to Assign Messages in a Shared Mailbox
How to use an Outlook macro to move messages to a new folder or mailbox or to assign categories to the message round-robin style.
Delete Email from Specific TLDs
I'm often asked how to filter email from certain domains when at least part of the domain name changes. Outlook doesn't support wildcards in rules, so you can't filter newsletters that come from @s1.domain.com, @s2.domain.com etc, or filter spam from .info, .work or Top-level-domain. This sample macro to use with a run a script rule
Process Mail that was Auto Forwarded by a Rule
How to identify or "do something" with a message that was auto forwarded. While the info bar in the message identified it as auto forwarded, it' only visible when the message is selected.
Run a Script: Send Autoreply with Date
These code samples show you how to use a run a script rule to send an auto response, including the received date and when the recipient should expect a follow up response. The first sample uses a template for the reply, the second macro replies to the incoming message.
Create Outlook Folders from a List of Folder Names
How to use a macro to create Outlook folders from a list of folder names in a csv file.
Use VBScript to Export or Import Categories
The VBScripts on this page will export or import a list of your categories for backup and importing into your Outlook desktop mailbox.