Option Compare Text 'la casse est ignorée
Private Sub CommandButton1_Click()
Dim t1, t2, ub&, i&, a, b, j&, rest(), n&
t1 = Range("D3:E" & Range("D" & Rows.Count).End(xlUp)(1).Row)
t2 = Range("A3:B" & Range("A" & Rows.Count).End(xlUp)(1).Row)
ub = UBound(t2)
ReDim Preserve t2(1 To ub, 1 To 3)
For i = 1 To UBound(t1)
a = t1(i, 1): b = t1(i, 2)
For j = 1 To ub
If t2(j, 1) = a And t2(j, 2) = b Then _
If t2(j, 3) = "" Then t2(j, 3) = "x": Exit For
Next
Next
ReDim rest(1 To ub, 1 To 2)
For i = 1 To ub
If t2(i, 3) = "" Then
n = n + 1
rest(n, 1) = t2(i, 1)
rest(n, 2) = t2(i, 2)
End If
Next
If n Then [G3].Resize(n, 2) = rest
End Sub