Hi,
just noticed that this wasn't the VBA part of the forum, my bad.
In any case, here's an alternative VBA solution you can use to be put into the Sheet1 module as an event procedure:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim a, i As Long
If Target.Count > 1 Then Exit Sub
If Application.Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
If Len(Target.Value) Then
a = Sheets("Sheet2").Range("C1").CurrentRegion
With CreateObject("Scripting.Dictionary")
For i = 1 To UBound(a, 1)
If Target.Value = a(i, 1) Then .Item(a(i, 2)) = Empty
Next
Range("C1").Validation.Delete
Range("C1").Validation.Add 3, , , Join(.keys, ",")
Range("C1").ClearContents
End With
Else
Range("C1").ClearContents
End If
End Sub
Best,
berlan
Bookmarks