A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
'Anything that looks like this is a comment
'Not all are instructions - some are explanations
The address C1:D10 is for the list of values - it can be anywhere on the same sheet, and as large as you need - it just needs to be two columns of values. If it is on another sheet, then it needs to include the sheet name:
Target.Value = Application.VLookup(Target.Value, Worksheets("SheetName").Range("C1:D10"), 2, False)
As written, this code will apply to cells A2:A30 - change that to the range of cells that you want to apply it to:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A2:A30")) Is Nothing Then Exit Sub 'Addresses of the cells with the dropdown
'Turn off events to keep out of loops
Application.EnableEvents = False
'Change the "C1:D10" in the next line to the address of your list
Target.Value = Application.VLookup(Target.Value, Range("C1:D10"), 2, False)
'Turn events back on to get ready for the next change
Application.EnableEvents = True
End Sub