kemal turan
Altın Üye
- Katılım
- 10 Haziran 2011
- Mesajlar
- 1,674
- Excel Vers. ve Dili
- Excel 2010 32 bit
- Altın Üyelik Bitiş Tarihi
- 06-10-2032
merhaba,
Aşağıdaki kodda ;
If Veri >= CDate(GIDERRAPOR.TextBox1.Value) And Veri <= CDate(GIDERRAPOR.TextBox2.Value) Then
satırı ile sayfadan veri alabiliyorum.
bu arama krıterine "BD" sutununda label5.caption a göre 3 nci bir kriter eklemeye çalıştım. yapamadım.
yardımlarınız için teşekkür ederim.
Aşağıdaki kodda ;
If Veri >= CDate(GIDERRAPOR.TextBox1.Value) And Veri <= CDate(GIDERRAPOR.TextBox2.Value) Then
satırı ile sayfadan veri alabiliyorum.
bu arama krıterine "BD" sutununda label5.caption a göre 3 nci bir kriter eklemeye çalıştım. yapamadım.
yardımlarınız için teşekkür ederim.
Kod:
Sub TARIH()
Worksheets("MASRAFLAR").AutoFilterMode = False
ReDim Dizi(1 To 6, 1 To 1)
On Error Resume Next
ListBox1.RowSource = Empty
ListBox1.Clear
On Error GoTo 0
If TextBox2 = "" Then
UserForm_Initialize
Else
Say = 0
Set Data = S1.Range("A2:BI" & S1.Cells(Rows.Count, 2).End(3).Row)
For Each Veri In Data
If Veri.Column = 1 Then
If Veri >= CDate(GIDERRAPOR.TextBox1.Value) And Veri <= CDate(GIDERRAPOR.TextBox2.Value) Then
Say = Say + 1
ReDim Preserve Dizi(1 To 6, 1 To Say)
Dizi(1, Say) = Format(Veri, "DD.MM.YYYY")
Dizi(2, Say) = Veri.Offset(0, 5)
Dizi(3, Say) = Veri.Offset(0, 50)
End If
End If
Next
If Say > 0 Then ListBox1.Column = Dizi
End If
End Sub