Guessed,
I am sorry mixing two issues together and bringing confusion.
Please let me know if there is anything I can do to fix this such as editing the title
As for your code, it does the job. I had looked for a solution for days online and found none. Thank you very much for assisting
This thread can be marked "resolved".
Have a great day