Thanks, followed your advice about using a macro and it's helped me understand the code a bit better. Problem solved.

Cheers
Sean