Thanks very much for the replies.
The last amended code works perfectly. Thanks very much for all your help!!
Cheers,
Terry