Code Samples

This category contains code samples put together to solve a specific user’s problem. The pages may not have detailed instructions for use.

Use a Macro to Assign Messages in a Shared Mailbox

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.

Create an Appointment at the Contact's Address

Create an Appointment at the Contact's Address

How to create a new Outlook meeting with a selected contact. Includes a macro to include the contact's address in the Location field.

Fix the Outlook Folder Type after Exporting an IMAP Account

Fix the Outlook Folder Type after Exporting an IMAP Account

After importing IMAP folders to Personal Folders or an Exchange mailbox, messages in the imported folder are hidden.

Add the Age to a Birthday on Outlook's Calendar

Add the Age to a Birthday on Outlook's Calendar

How to add a person's current age to a birthday event on Outlook's Calendar using a macro.

Create Outlook Folders from a List of Folder Names

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.

Macro to Reply, ReplyAll, or Forward and File

Macro to Reply, ReplyAll, or Forward and File

Use a macro to file the original message by sender after responding.

Create a custom numbering field on Outlook messages

Create a custom numbering field on Outlook messages

How to create a custom index field on Outlook messages using numbers only or the mailbox name and numbers.

Working with All Items in a Folder or Selected Items

Working with All Items in a Folder or Selected Items

These samples contains the basic code for working with all items in a selected folder or selected items in a folder.

Use a macro to create a rule to move messages

Use a macro to create a rule to move messages

How to run macros triggers by reminders, update rules using macros, and more.

Save and Rename Outlook Email Attachments

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.