BTW, I find this much simpler, much easier to understand, and much easier to extend http://www.j-walk.com/ss/excel/tips/tip53.htm