excelenergy
Board Regular
- Joined
- Jun 7, 2012
- Messages
- 142
I'm trying to get a text box on a user form to look up a value in a combobox on the user form...then populate itself with the value it finds.
I'm trying to use Application.Worksheet
Doesn't seem to work. I'm not getting any errors. Just no result in the textbox. Any ideas of a more useful way to do this?
I'm trying to use Application.Worksheet
Code:
Private Sub TextBox1_Change()
With Me
.Reg1 = Application.WorksheetFunction.VLookup(CLng(Me.Reg1), Sheet8.Range("A:E"), 2, 0)
End With
End Sub
Doesn't seem to work. I'm not getting any errors. Just no result in the textbox. Any ideas of a more useful way to do this?