Visual Basic for Application Example Code,
Outlook email process automation,

example 1: del_mails demonstrates how to 
 delete email by creation date 
 prompt user to select email folder
 select folder by folder name

example 2:   
1