I agree with Ralph, your code looks very complicated, I must admit that I dont really understand it, all of your code can be consolidated into just the one line which Ralph wrote smile grin