thanks for the hint jens, i think i will do that in future but for now i'm happy to leave it as is, the code runs fine and takes but a second or two to complete its cycle, but i will do that in a future script, maybe when i begin to revise this one, but thanks again jens, and thanks for all your help with the code itself,

Anth