Dear Expert,
Thanks for your support but I couldn't understand your code, hereby I received this message error (Compile error: User-defined type not defined)

and Highlighting below script
d as Dictionary

Sorry, I'm confuded and don't know how to fix it out!