Private Sub lMatch()
Dim bMatch As Long
With Blad2.ListObjects(1).DataBodyRange
If (txtID <> vbNullString) * (txtNumber <> vbNullString) Then
bMatch = Evaluate("countifs(" & .Columns(1).Address(, , , True) & ",""" & _
txtNumber & """," & .Columns(2).Address(, , , True) & "," & txtID & ")")
ElseIf (txtNumber <> vbNullString) * (txtID = vbNullString) Then
bMatch = Evaluate("countif(" & .Columns(1).Address(, , , True) & ",""" & txtNumber & """)")
ElseIf (txtNumber = vbNullString) * (txtID <> vbNullString) Then
bMatch = Evaluate("countif(" & .Columns(2).Address(, , , True) & ",""" & txtID & """)")
End If
End With
lblResultaat.Caption = bMatch
End Sub