NickKO's instructions are quicker - just saw them about
the same time
My thanks to both of you. I used both your replies and I think it worked, but the codes were probably bad. I'll have to test it with a known good code.
Thanks again to both of you for your prompt replies.