Find a value in column A and return the text in column B

Arcadian

Board Regular
Joined
Jul 27, 2004
Messages
111
Hi all,

I think this isn't too dificult, but I can't figure it out.

On worksheet 1 there are these values:

Column A Column B
A01 text01
A02 text02
A03 text03
A04 text04
A05 text05
A06 text06
A07 text07
A08 text08
A09 text09
A10 text10

On worksheet 2 I have the same values as worksheet 1 column A and depending on which cell is active a VBA code returns a value, for instance A03.

I need a VBA code that looks for the matching value (A03) in column A on worksheet 1 and return the corresponding value (text03) in column B so I can use it in a userform.

Thanks in advance.
I need a VBA code that
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Can you post your existing code.
 
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,072
Members
449,093
Latest member
ripvw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top