Thanks to Kevin and Mark. Two excellent explanations, and I appreciate the time you took to spell the code out for me. Hopefully, I wasn't the only one who benefitted... I'll be saving these gems in my snippets file for future reference. Tim