Though this is a good solution, it woudl be better if I could add the "label field" and the "text box field" programatically on the userform. The solution above makes me create the form ahead of time AND add all the fields ahead of time. If my data changes, I'll have to edit the userform.....
I have some code that adds textfields to a userform within a frame - my issue with the code is "placement" of the field - it adds the fields directly on top of one another. I do not know how to place them correctly so they are in a column. There must be some x,y placement for the text box.
One last item, I want to add Labels also, what is the name of that control type?
Any help is appreciated.
Thanks,
Sub AddTextbox(box)
Dim fr As Frame
Dim Txt As Control
Set Txt = Me.Frame1.Controls.Add("Forms.TextBox.1")
Txt.Name = "Box" & box
Txt.TabStop = True
End Sub
Bookmarks