Introduction
Take a look at the following picture.


Well, there is no picture, forum does not allow me to do so. Take a look at the following ascii schematic.


Please Login or Register  to view this content.
There are two Outlook data files, their root folders are named “_FMMB” and “_Middle”. Both files have and subfolders and subfolders in subfolders.

A number of emails are moved from Inbox to folder “_Middle\000_Arrive” manually (I prefer it that way).

The code should move all emails from folder “_Middle\000_Arrive” to a folder in either “_FMMB” or “_Middle” based on the email’s subject.


The code
I am a little bit experienced in utilizing VBA in MS Excel but totally newbie when it comes to Outlook. I got a little bit confused with Namespace, MAPI and other stuff.

I searched the Internet and I made my first attempt. I scanned the folder (“_Middle\000_Arrive”), read the subjects of the email and displayed them in a Message Box.

Here is the code, a last step is pending.

Please Login or Register  to view this content.



Any help would be appreciated.