Hello, I am new using VBA. I have data in 2 columns A with corresponding data in B. I have used the data in column A as a drop down menu. I want an excel VBA code that will retrieve data from column B and use that to replace the data selected from A. A sample data is below
A
Blue
Green
Purple
Yellow
Red
B
Apple
Lemon
Banana
Orange
Melon
The vba should should replace Blue with Apple when I select Apple from the drop down list and Yellow with Orange
A
Blue
Green
Purple
Yellow
Red
B
Apple
Lemon
Banana
Orange
Melon
The vba should should replace Blue with Apple when I select Apple from the drop down list and Yellow with Orange