hi greg
thanks alot for your quick response

i tryed both scrips and the secend one works great

unfortunately in the first script i am getting a error by this word "UBound"