Your comments

Thank you so much for the quick and comprehensive response.  Works perfectly and I'm sorry I couldn't work it out for myself!