Thank you all for all your help
I will use a combination of the code from Gargoyle and the suggestion from Witto.

Thank you again