COPY CUSTOM CONTROL WITH ALL CODE CONTEINING

Hello,
It is not a problem to copy a user control to the same or another user form.
However, how to copy the program code associated with this control as well. One way is to make a Class that adds code to controls with a specified Caption, for example Test. This makes it possible to make code changes in one place, in the class, and all controls with Caption Test /command buttons/ to execute the same code. Of course, manually copying/pasting the code is out of the question. But right here is the problem - that this is a very laborious process because each control has a different name. Now let's imagine that the control also has many events.....
I ask how could this be automated, made easier?
Greetings!