I have an Excel VB code in which I made a button in Excel that when clicked, goes to the next sheet and searches for the value based on employee number. I used VLookup
in this code. My problem is solved.
The same thing I am doing with UserForm in Excel. Now I have a textbox1
for employee number and textbox2
for employee name, the same is in sheet2
with ColumnA
and ColumnB
.
Now when I enter the employee number in textbox1
, the name is appearing in textbox2
and also a button to change the value of textbox2
.
I want to change the value of textbox2
and when the button is clicked, go to that particular employees name field. How can I do this?