Thanks for your help but I seem to have a problem with this code - it does not work.
I do believe the problem lies with me though.

Thanks for the advice on the renaming id the objects. I have actually started on that just today.