Dear Kop,
Thank you for your update, appreciation and confirmation.
Wow, that was a very lucky strike!
Very glad it helped and the problem is resolved.
Thank you very much for sharing the working code.
Please also note Daren Thomas' answer on StackOverflow. He says the same thing.
Best regards,
Jeremy