Hello experts,
I have two columns (Machine code and Date) in a sheet (Sheet7)to which data is entered through a userform. There is another column called E-mail in this sheet. Machine codes and respective E-mail addresses are in another sheet (Sheet1-Machine Registry) as well. What I want to do is, when a particular machine code is entered to Sheet 7 through the userform, search for that machine code in Sheet1 and return the respective E-mail address to E-mail column in Sheet7. I tried to use a VLOOKUP function, thought of using a macro as it is more efficient than using a VLOOKUP to 30000 rows.
This is the VLOOKUP I used,
=VLOOKUP(A2,'[Sheet1]MACHINE REGISTRY'!$C$2:$M$20000,11,0)
I am new at Excel VBA and despite my efforts I cannot seem to find a similar example online to use as a solution to my issue. So, any help from you experts is highly appreciated.
Thanks a lot in advance
I have two columns (Machine code and Date) in a sheet (Sheet7)to which data is entered through a userform. There is another column called E-mail in this sheet. Machine codes and respective E-mail addresses are in another sheet (Sheet1-Machine Registry) as well. What I want to do is, when a particular machine code is entered to Sheet 7 through the userform, search for that machine code in Sheet1 and return the respective E-mail address to E-mail column in Sheet7. I tried to use a VLOOKUP function, thought of using a macro as it is more efficient than using a VLOOKUP to 30000 rows.
This is the VLOOKUP I used,
=VLOOKUP(A2,'[Sheet1]MACHINE REGISTRY'!$C$2:$M$20000,11,0)
I am new at Excel VBA and despite my efforts I cannot seem to find a similar example online to use as a solution to my issue. So, any help from you experts is highly appreciated.
Thanks a lot in advance