Re: Dropdown list values - how to maintain the original form
Hi again Dennis,
Here's a similar solution that works with a validation list. I couldn't test it with the list on a different worksheet because my Excel 2000 doesn't support lists on a different sheet. But it definitely works with the list is on the same sheet.
As before, this code should go into the event code module of the worksheet on which the validated cell resides. This code works for every list-validated cell on that worksheet, but if you want to restrict it to just certain cells, this is easy to do with just one additional line of code. Let me know if you need that.
Here's the code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Lcell As Range
On Error GoTo Fagedaboutit
If Target.Validation.Type = xlValidateList Then
With Target.Validation
If .Value Then
Application.EnableEvents = False
Set Lcell = Evaluate(Mid(.Formula1, 2)).Find(Target, lookat:=xlWhole)
Lcell.Copy
Target.PasteSpecial xlPasteFormats
Application.CutCopyMode = False
Application.EnableEvents = True
End If
End With
End If
Fagedaboutit:
End Sub