bramsquad
asked on
control name as text
i know this is farily easy, but i dont know what to search for
im wanting to control a bunch of different controls, and i dont want to use a control array...what i want to do is pass the text which will be the name
so something along the lines of
"text1".Text
thanks
~b
im wanting to control a bunch of different controls, and i dont want to use a control array...what i want to do is pass the text which will be the name
so something along the lines of
"text1".Text
thanks
~b
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, That was concurrency :D
Dim oControl As Control
For Each oControl In Me.Controls
If oControl.Name = "TextBox1" Then
Exit For
End If
Next
' oControl is the control that you searching
MsgBox(oControl.Text)