>My sheet where choice is made is 'Projects'.
Sheet 'Projects', starting cell C2 on down
Example cell C1 says 'DEPT'
Cell C2,C3,C4 etc have the dropdown. User click on cell C2, sees and clicks
on dropdown, the descriptive list shows (Accounting, Purchasing, etc). The
user clicks a choice from the dropdown list (say, Accounting), right now the
cell C2 get filled with 'Accounting'. I want the abbreviation to come back
instead. ie user sees and clicks on 'Accounting' but 'ACTG' is returned.
My actual list - namedrange 'DEPT' is on sheet 'ChoiceLists'. Cell C1 says
DEPT, Cell D3 says 'Department'
The abbreviations are in cells C3-C10 (or so), the descriptions are in cells
D3-D10.
> >My sheet where choice is made is 'Projects'.
>
[quoted text clipped - 58 lines]
> >> > description.
> >> > Any way to do this?
T. Valko - 18 May 2008 07:16 GMT
Ok, your description is a little confusing!
Let's assume the drop down lists are in the range Projects!C2:C5
The departments are in the named range Depts on sheet ChoiceLists!D3:D5
The department codes (abbreviations) are in the range ChoiceLists!C3:C5
Navigate to sheet Projects
Right click on the sheet tab and select View code
Copy/paste the code below into the window that opens
Modify this line of the code to reflect your actual range size where the
drop down lists are located:
If Not Intersect(Target, Me.Range("C2:C5")) Is Nothing Then
If the actual range is C2:C25, then change to:
If Not Intersect(Target, Me.Range("C2:C25")) Is Nothing Then
'Start of code-----------
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then GoTo exitHandler
If Not Intersect(Target, Me.Range("C2:C5")) Is Nothing Then
If Target.Value = "" Then GoTo exitHandler
Application.EnableEvents = False
Target.Value = Worksheets("ChoiceLists").Range("D3") _
.Offset(Application.WorksheetFunction _
.Match(Target.Value, Worksheets("ChoiceLists").Range _
("Dept"), 0) - 1, -1)
End If
exitHandler:
Application.EnableEvents = True
Exit Sub
End Sub

Signature
Biff
Microsoft Excel MVP
> Sheet 'Projects', starting cell C2 on down
> Example cell C1 says 'DEPT'
[quoted text clipped - 81 lines]
>> >> > description.
>> >> > Any way to do this?