Thanks, worked a treat!

The code is fine, I might condense it myself later. Thanks for taking the time to construct your reply.