Thanks for the reply, I've replaced the code with what you posted but it doesn't do anything at all, is there something I'm missing?