Thanks MD that made it alot easier.
I started VBA after doing some work in Access. I am now looking at excel itself. Have looked at VBA in excel and not so much excel itself. You and Xld have shown me some functions. Can you point me in the direction of a web site or book that explains functions? I have looked at some of the help files in excel however would like some better explenations.
Cheers