Thank you both so much, I'm going to use Lee's code for now, primarily because it takes only two arguments and the third argument in Tom's solution (as well as my own attempt) is ungainly. -Max