it's great! Thanks for making my code better. I realise I should have gone through it a bit more thoroughly before i passed it to you - sorry!!