Hi Killian,

Thank you so much for your help. For some reason the above code gives me the following error in Application_Startup:

Compile Error "User-defined type not defined" The error is specifically on the

New cItems

area of the line

Set objFolderItems = New cItems

Your code is pasted exactly as in your above post (the only difference is I've changed my personal folder name to match the folder I'm currently using).

I'm not sure why this is the case, but perhaps you might have an idea.

Thanks!