I have already given you all the code you need. You can use it with either the macro I supplied or, with only minor changes, your own code.