Comments:
The code you sent me is structured as I had hoped, and it performs exactly the task I had described. It is perfect for my needs. It was a pleasure working with you and I'm very happy with the result. If I run into similar trouble in future, I will not hesitate to contact you.