DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
İlginiz için teşekkür ederim ama benim aradığım metinleri filtrelemesi gerekiyor.
On Error Resume Next
ActiveSheet.ShowAllData
Range("B5").AutoFilter Field:=2, Criteria1:=">=" & CLng(CDate(TextBox2.Text)), Operator:=xlAnd _
, Criteria2:="<=" & CLng(CDate(TextBox6.Text))
Private Sub ComboBox1_Change()
On Error Resume Next
If ComboBox1.Text = "" Then
Selection.AutoFilter Field:=4
Else
ActiveSheet.ShowAllData
Range("d2").AutoFilter Field:=4, Criteria1:=">=" & ComboBox1.Text, Operator:=xlAnd, Criteria2:="<=" & ComboBox2.Text
End If
Range("D1").Select
End Sub
Private Sub ComboBox2_Change()
On Error Resume Next
If ComboBox2.Text = "" Then
Selection.AutoFilter Field:=4
Else
ActiveSheet.ShowAllData
Range("d2").AutoFilter Field:=4, Criteria1:=">=" & ComboBox1.Text, Operator:=xlAnd, Criteria2:="<=" & ComboBox2.Text
End If
Range("D1").Select
End Sub
Private Sub CommandButton1_Click()
ComboBox1.Text = ""
ComboBox2.Text = ""
son = Cells(Rows.Count, "D").End(3).Row + 1
ComboBox1.ListFillRange = "d2:d" & son
ComboBox2.ListFillRange = "d2:d" & son
End Sub
Private Sub Worksheet_Activate()
ComboBox1.Text = ""
ComboBox2.Text = ""
son = Cells(Rows.Count, "D").End(3).Row + 1
ComboBox1.ListFillRange = "d2:d" & son
ComboBox2.ListFillRange = "d2:d" & son
End Sub
Merhaba Halit bey; D sütunundaki verilere tarih girilince, bu tarihleri süzdürmek istiyorum, ancak bu tarihler Comboxlara sayı olarak geliyor, bunun tarih olarak gelmesi için nasıl bir kod nereye yazılır. Teşekkürler.