have a look here, you may be able to adapt it to your needs.
http://www.excelforum.com/outlook-fo...ml#post3567396