I´m new to VBA so...
I have a command button1 in sheet1. It asks some values and names and creates a new sheet with given name showing those values and names.
Now, I want that when I click command button1 it will also create a new command button under those values to the new sheet. I have founded code that will create the button where I want, but I also want the button to have similar code than command button1.
How to create a new button with code that can be run right after it is created?