Alan, an additional welcome to the forum from my side, and thank you for the useful code you have shared.

Al.