Automatically file Outlook emails

This VBA code will file emails based on the domain of the sender. I have used this for several years to quickly manage my emails without all the manual work of traversing the folders and depositing saved emails in the proper locations. Just update your Mailbox name and modify the arrays to support your emails and folder structure. I file everything under the Inbox and separate the communciations based on type, i.e. Software, Service, Purchasing, Hardware, etc. If this macro was activated with the default configuration, it would file any number of selected emails from softwarecompany.com into \Mailbox - Gerald Cox\Inbox\Software\SoftwareCompany. If the folder does not exist, it will be created.

The code also handles emails from your own domain and files them in \Mailbox - Gerald Cox\Inbox\My Company\ just update mydomain.com and the destination folder.