MS Outlook Automaticaly create new folder

Closed
Obvious - Oct 2, 2015 at 03:39 AM
Hello,

We are working on a mailbox where mails have certain case numbers in the subject.
The case numbers are very important.
What I need is that when such mails comes in the inbox, it should autmatically check if a folder excists, if not then create one. If it does excists it should me moved tot he folder witht hat name.

Samples of numbers:
540002122
5100086547
5100118702
5100121163
etc,
So these numbers either begin with 5400... or 5100...

Can someone help me with this?
Im totally new with Macro VBA scripts...