Hi Lewis,

Thanks for this instant help. With little tweaks as per my requirement your code is working great.