Thanks Marco, I do have that code, but I'd totally forgotten I had it. Much appreciated.