The articles listed below contain VBA code samples. Additional code samples are listed at Developer Samples
![Filter @Mentioned email](https://b76191.smushcdn.com/76191/images/2024/outlook/filter-at-mentioned-110x110.png?lossy=2&strip=1&webp=1)
Categorize @Mentioned Messages
A user wanted to know how to create a rule to add a category to messages he was @mentioned on. I'll show you how to use a run a script rule or an ItemAdd macro to set a category on a message you were @mentioned on in classic Outlook.
![The hidden property is added and the folder is not visible in the folder list](https://b76191.smushcdn.com/76191/images/2012/04/hidden-property-folder-list-110x110.png?lossy=2&strip=1&webp=1)
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.
![extra contact folders](https://b76191.smushcdn.com/76191/images/2018/outlook/outlook-contact-folders-110x110.png?lossy=2&strip=1&webp=1)
Hide Extra 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.
![Folder paths](https://b76191.smushcdn.com/76191/images/2012/05/folder-path-110x71.png?lossy=2&strip=1&webp=1)
Working with VBA and non-default Outlook Folders
How to use VBA to 'do something' in Outlook's non-default folders.
![outlook-icon](https://b76191.smushcdn.com/76191/images/2024/code-samples/outlook-icon-stripe-3-110x110.png?lossy=2&strip=1&webp=1)
Send an Email When You Open Outlook
Today's entry in the Fun with Programming series is a macro to send a message every day when you first open Outlook.
![Read Internet Header](https://b76191.smushcdn.com/76191/images/2012/code-samples/view-header-110x110.png?lossy=2&strip=1&webp=1)
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.
![](https://b76191.smushcdn.com/76191/images/2014/code-samples/filenames-110x110.png?lossy=2&strip=1&webp=1)
Save and Rename Outlook Email Attachments
Use a macro to save attachments on Outlook email messages to a folder on your hard drive and add the files last modified date to the filename.
![folder list](https://b76191.smushcdn.com/76191/images/2019/code-samples/folder-list-110x110.png?lossy=2&strip=1&webp=1)
Delete duplicate messages using a macro
Use a macro to clean up duplicates messages in an Outlook folder.
![print a folder list in Outlook](https://b76191.smushcdn.com/76191/images/printfolder-list-110x110.png?lossy=2&strip=1&webp=1)
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.
![](https://b76191.smushcdn.com/76191/images/2012/code-samples/rules-icon-13-110x110.png?lossy=2&strip=1&webp=1)
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.
![scan to email using vba](https://b76191.smushcdn.com/76191/images/2019/outlook/scan-to-email-110x110.png?lossy=2&strip=1&webp=1)
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).
![](https://b76191.smushcdn.com/76191/images/2014/outlook/calendar-print-110x110.png?lossy=2&strip=1&webp=1)
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.
![email message](https://b76191.smushcdn.com/76191/images/2003/email/Message-110x110.png?lossy=2&strip=1&webp=1)
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.
![Create a macro button](https://b76191.smushcdn.com/76191/images/create-macro-button-110x110.png?lossy=2&strip=1&webp=1)
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.
![click on the percentage to open the dialog](https://b76191.smushcdn.com/76191/images/2012/outlook/zoome-dialog-110x110.png?lossy=2&strip=1&webp=1)
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.