Thank you all for your contributions and thank you Laurent_R for your improved code
In reply to Re^2: Nested loops by robert44444uk in thread Nested loops by robert44444uk