Dear Yasser.
I'm very grateful to you. Finally, I have an idea of how I can start the code, I'm rookie in this topics but I'll continue studying the UDF user guide. If it's not too much to ask, could yo give me a way to contact us? In case I need any other help..