Your comments

Hi Thomas

Thank you for your advise. I edited your script as follows:

and I'm glad it works.

Allen