DogsbodyBoy
New Member
- Joined
- Oct 24, 2022
- Messages
- 20
- Office Version
- 365
- Platform
- Windows
I have what might be a rather unusual objective. I would like to know if there is VBA code that can be applied to a worksheet so that when a value is entered into a cell, such as the letter A for example, a lookup table containing two columns is searched. If the entered letter exists in the 1st column, then it is automatically replaced with the value in the second column.
For clarity, suppose the two columns in the lookup table are populated like this:
Column 1 Column 2
A NORTH
B SOUTH
C EAST
D WEST
So if the letter C is entered into a worksheet cell, it is automatically replaced with EAST.
Note. Column 1 is the single letters A, B etc. Column 2 is North, South, etc.
Thanks for any help.
For clarity, suppose the two columns in the lookup table are populated like this:
Column 1 Column 2
A NORTH
B SOUTH
C EAST
D WEST
So if the letter C is entered into a worksheet cell, it is automatically replaced with EAST.
Note. Column 1 is the single letters A, B etc. Column 2 is North, South, etc.
Thanks for any help.