Hiya,

Got a problem I cant see the solution or workaround to. May be you can help?

I have some code in excel scanning emails and grabing relevant data.. works ok in sub folders.

To allow it to do this I have a list box which shows namespace folders then from the it uses mapifolders. I used a double for...next loop -> one for ns folders and one for mapifolders (folders off the ns).

Now however the main scan needs to do the same thing and I do not particularly want to have two loops, but I cannot set ns.folders into the mapifolder variable (type mismatch).

Any ideas?