Hello, I have a userform with one textbox that does a vlookup. I have the following code which works when clicking on the box. Is there any way to have this shown when tabbing, or automatically after textbox1 info is entered?
Private Sub UserForm_click()
Do
DoEvents
row_number = row_number + 1
item_in_review = Sheets("sheet1").Range("a" & row_number)
If item_in_review = TextBox1.Text Then
TextBox2.Text = Sheets("sheet1").Range("B" & row_number)
End If
Loop Until item_in_review = ""
End Sub
Thanks,
DC
Private Sub UserForm_click()
Do
DoEvents
row_number = row_number + 1
item_in_review = Sheets("sheet1").Range("a" & row_number)
If item_in_review = TextBox1.Text Then
TextBox2.Text = Sheets("sheet1").Range("B" & row_number)
End If
Loop Until item_in_review = ""
End Sub
Thanks,
DC