penpen wrote:Sorry, last time i have replaced only the second half of the code although i've rewritten more .
I've changed the above code, so it should work now (i hope).
To speed up even more, you could make a macro of it; also you may use lesser variables.
penpen
thanks penpen,
I have not tested the code but i have seen that is very minimal and more efficient than mine. I will try to reoptimize your code soon!
einstein1969