Macropod, it works like a dream. Thank you so much for your expertise and time.

One last question: The code will be placed in a macro-enabled template, does the code have to be in the document or can it remain in the template?

Regards,

JDS_916