Excellent thanks, why didnt I think of that!

I have found a small problem which is not directly related to this thread so I will start another. I will return here to paste 2 functions which I created from your suggestions which may help others.

L.