i'm using the createObject function but it doesn't work
VB Code:
Set oTextBox = CreateObject("MSForms.textBox")
what am i doing wrong?
Printable View
i'm using the createObject function but it doesn't work
VB Code:
Set oTextBox = CreateObject("MSForms.textBox")
what am i doing wrong?
To create an object you would have to pass the programmatic identifier like this:
Use the same syntax to add a control to a UserForm at run-time.VB Code:
Set oTextBox = CreateObject("Forms.TextBox.1")
:)VB Code:
Me.Controls.Add "Forms.TextBox.1", "MyBoxName", True
Great, thx a lot!