Hi
Try this
Right click on the Menu Item Cost tab, select View Code and paste in
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("C8:C20")) Is Nothing And Len(Target.Value) > 0 Then '.Address = "$C$8" Then
Set Rng = Sheets("Inv").Range("B2:B6000")
holder = ""
For Each ce In Rng
If InStr(1, ce, Target.Value) > 0 Then
holder = holder & ce.Value & ","
End If
Next ce
If Len(holder) > 0 Then
With Target.Offset(0, 1).Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=holder
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
End If
ElseIf Len(Target.Value) = 0 Then
With Target.Offset(0, 1).Validation
.Delete
End With
End If
End Sub
Now type BIER in C8, and move to D8. You should find a drop down list of relevant items.
HTH
rylo
Bookmarks