Marcol,

Thank you so much for your assistance. With some more tweaking in the macro code you have provided i got the result what i expected. Thanks again...