The second code block is not related. It is only there to show the first reply that I have, indeed, set the cellXY variable - As I stated in my OP.
No, my code is not runnable because it’s a reduced code snippet containing the relevant information only. My program does a lot more than shown, and I’m not going to re-write it to try to integrate your methods. That should be un-necessary, and neither does it answer my question.