Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim Trh1 As Date, Trh2 As Date
If ListBox1.ListIndex <> -1 And ListBox1.ListCount <> 0 Then
aranan = ListBox1.Value
With UserForm2.ListBox2
.Clear
If OptionButton8.Value = True Then
If Not IsDate(TextBox2) Then MsgBox "İlk tarih giriniz.", vbExclamation: Exit Sub
If Not IsDate(TextBox3) Then MsgBox "Son tarih giriniz.", vbExclamation: Exit Sub
Trh1 = TextBox2
Trh2 = TextBox3
End If
Dim c()
For i = 2 To UBound(a)
If OptionButton8 = False Then GoTo es
If a(i, 1) >= Trh1 And a(i, 1) <= Trh2 Then
es: If aranan = a(i, sut) Then
say = say + 1
ReDim Preserve c(1 To 6, 1 To say)
c(1, say) = Format(a(i, 1), "dd.mm.yyyy")
For j = 2 To 6
c(j, say) = a(i, j)
Next j
End If
End If
Next i
If say > 0 Then
.Column = c
Else
.Clear
End If
End With
End If
End Sub