Thank you again for all the help, I have been spending ages trying to find this code and now it works like a dream!!!!

Cheers,
Matt