I have user forms and have command buttons in them and when I click on the command button it runs the code that comes to that command button based on the code of that command button. If I want to delete the command button, is there a way to delete the command button and the related code at the same time through a macro?