My travails with this were very much of my own making because I got side-tracked by the various red herrings on the left-hand side. Thanks again Grahamderek for your help and patience and Mattrom for pointing me in the direction of Quisling's very generous hint. As usual when I've had so much help I won't be submitting it.