Ok cheers ZuK and Daved (again) the code is working perfectly