DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
On Error Resume Next
Sheets("Sayfa1").Activate
Dim tarih, i
If TextBox1.Value = "" Then
MsgBox ("İlk Tarihi Giriniz")
Exit Sub
Else
End If
If TextBox2.Value = "" Then
MsgBox ("Son Tarihi Giriniz")
Exit Sub
Else
End If
ListBox1.Clear
TextBox2 = Format(TextBox2, "dd.mm.yyyy")
TextBox1 = Format(TextBox1, "dd.mm.yyyy")
For c = 4 To Range("f65536").End(xlUp).Row
On Error Resume Next
If CDate(Cells(c, "f")) >= CDate(TextBox1) And CDate(Cells(c, "f")) <= CDate(TextBox2) Then
i = i + 1
For t = 1 To 14
ListBox1.AddItem
ListBox1.Column(t - 1, i - 1) = Cells(c, t)
Next
End If
Next
For c = 4 To Range("n65536").End(xlUp).Row
On Error Resume Next
If CDate(Cells(c, "n")) >= CDate(TextBox1) And CDate(Cells(c, "n")) <= CDate(TextBox2) Then
i = i + 1
For t = 1 To 14
ListBox1.AddItem
ListBox1.Column(t - 1, i - 1) = Cells(c, t)
Next
End If
Next
Son:
End Sub