|CyberDude: I thought the MapiFolder object covered all those.|
VBA's Immediate Window:
debug.Print vartype(mailbox), _
0 0 0
CyberDude: The error is: Object could not be found.
Then something in that chain returns nothing. I'm not sure if it's mailbox(0), the folders(0), or the other folders(0), but something in that chain returns Nothing.
I'd check the script you copy/pasted from. I bet you somewhere, they define those variables.