I would like to make references to an unknown number (max 10) of textboxes. The name of the textboxes are "myTB1", "myTB2", "myTB3" and so on.
I know that I cold have used
**********
Dim ref1
Set ref1 = UserForm1.myTB1
Dim ref2
Set ref2 = UserForm1.myTB2
**********
... and so on...
I hva tried this:
**********
Dim i as Integer
For i=1 to 10
Dim "ref" & i
Set "ref" & i = "UserForm1.myTB" & i
Next
**********
But that didn't work.
Can anyone here help me?
By the way. I am not sure what a "Techical User" is, I didn't know the difference between the titles when I registered, so I just picked the one at the bottom hoping that it meant something like "beginner".
I know that I cold have used
**********
Dim ref1
Set ref1 = UserForm1.myTB1
Dim ref2
Set ref2 = UserForm1.myTB2
**********
... and so on...
I hva tried this:
**********
Dim i as Integer
For i=1 to 10
Dim "ref" & i
Set "ref" & i = "UserForm1.myTB" & i
Next
**********
But that didn't work.
Can anyone here help me?
By the way. I am not sure what a "Techical User" is, I didn't know the difference between the titles when I registered, so I just picked the one at the bottom hoping that it meant something like "beginner".