Does anybody know, how I can create a userform with textboxes at runtime (not designtime), and how I can finally read (variables) and process the text the user types into the boxes?
I would be happy about any answer I get because the way I tried doing the mentioned task is causing big problems.
I've generated a userform with textboxes inserted in runtime.
Following Syntax:
Public MyTextBoxes(20) As Control
...
Set UF1 = ThisWorkbook.VBProject.VBComponents.Add(vbext_ct_MSForm)
...
Set MyTextBoxes(TBCount) = UF1.Designer.Controls.Add("Forms.TextBox.1")
After (means really...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.