Outlook - Loop though folders and count the colour catargies

Asked By Vijay Raval on 28-Aug-13 03:30 PM

Hi all,

I am looking to loop through a folder in Outlook and once located count the catargies colour, then move onto the mail.

I am aware the catargies.color I have to split it, so it would be something like Cat1,Cat2 etc for each colour in the mail.

The start of the code would be something like:

Dim OlApp as Outlook.Application  

Dim Session as Outlook.Namespace

Dim StartFolder as Out.MAPIFolder

Set StartFolder: Here I was going to something like \\Mailbox\Inquery\Completed, this shd point to the folder that I need to look in.

Then create a loop, something like

For each mail, however I am really sure how to go forward.

Any help would be appreciated.

I hope this make sense.


Thank you for looking


Vj