Glad it's working for you:-)
Actually it's Old Pedant's code and thanks should be credited to him which i've done via the 'thank user for this helpful post' button.
Ask not what can I do for myself, but what can I do for others
"The greatest revenge is to accomplish what others say you cannot do."
I used to be indecisive, but now I'm not so sure.