What I am trying to do is make a custom form based on values from the worksheet. I am looking up the values and using a for next loop to place the buttons on the form. I am also pulling the information for the buttons caption from the worksheet. I can get it to almost work until I try to use a variable. The problem is in this part of the code. I think.UserForm1.Controls.Add("Forms.inputbutton", "radioname", True)
Maybe I need to declare inputbutton as something other than variant. I am getting the error (Invalid string class ) Thanks for the help. I will post my code when I figure out how to do that.
Bookmarks