Thanks very much for all the info on Excel/VBA and the code. Magic.I will swat up on it and try it out in the next few days.