Insert the code in a macro. If you are not sure how to create your ownprocedure, record a macro, and then edit it. You will be able to enterthe code there.