Hi,

Thanks for your help. The code worked perfectly.