Thanks for the detailed reply!!
my lil programme works a treat.

regards

Derek