Thanks xld,
I cannot test the last code you provided. It makes my excel to crash.