Should paste that code into your post between CODE tags. Use the # icon from post edit toolbar. Can edit your post.

"Outlook script" is VBA. Have you tried code in an Access module?

Duplicate thread http://www.vbaexpress.com/forum/show...utlook-Mailbox