Well, if it is a textbox in a Userform, you pretty much have to know the name before you can do anything with it. For example, if you have a textbox named TextBox1, then you could use the Enter event for the named control:
Private Sub TextBox1_Enter()
MsgBox Me.TextBox1.Name
End Sub
|