What is your problem with the code that Bob (xld) has given you in the Excel forum? Does that not work for some reason?