Hi,
This is a vba question. I found the question: "Adding controls to a frame in an Excel userform with VBA" and used its method to add commandbuttons to my frame in my user form. Since I added four commandbuttons, I ran the code in a loop, and used the
With ...
.Name = "commandbutton" & x
to give each command button its own name. I included in my code macros for each commandbutton (since I renamed them I know what the name of each cb is) but when I click on the button, nothing happens.
Alternatively, if someone could explain to me how use code to place controls on a form into a frame, I could solve my problem a different way.
Thanks,
Michael