My request for you to check the code was a mark of my insecurity, and lack of experience in debugging.
However, after sorting a couple of glitches (it complained of a Wend without a While, which was there, confusing me greatly, and the actual problem was a missing EndIf (!) , and me taking the...