• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

ChecBox ile Filtreleme

  • Konbuyu başlatan Konbuyu başlatan alptun20
  • Başlangıç tarihi Başlangıç tarihi
Katılım
10 Eylül 2009
Mesajlar
288
Excel Vers. ve Dili
2003 Türkçe
Ekli dosyada görüldüğü üzere Form üzerinde bulunan a, b ve c seçeneklerinden CheckBox ile seçtiklerimin filtrelenmesini istiyorum. Saygılarımla..
 

Ekli dosyalar

Sanırım Excelde mümkün olmayan bir şey bu.

Peki alternatif önerisi olan varmı.
 
istediğin bu mu?

Private Sub CommandButton1_Click()

If CheckBox1.Value = False And CheckBox2.Value = True And CheckBox3.Value = False Then

End If
If CheckBox1.Value = True And CheckBox2.Value = True And CheckBox3.Value = True Then
Selection.AutoFilter Field:=1
Else
If CheckBox1.Value = True And CheckBox2.Value = True And CheckBox3.Value = False Then
Selection.AutoFilter Field:=1, Criteria1:=Label1.Caption, Operator:=xlOr, _
Criteria2:=Label2.Caption

ElseIf CheckBox1.Value = True And CheckBox2.Value = False And CheckBox3.Value = True Then
Selection.AutoFilter Field:=1, Criteria1:=Label1.Caption, Operator:=xlOr, _
Criteria2:=Label3.Caption
ElseIf CheckBox1.Value = False And CheckBox2.Value = True And CheckBox3.Value = True Then
Selection.AutoFilter Field:=1, Criteria1:=Label1.Caption, Operator:=xlOr, _
Criteria2:=Label3.Caption

ElseIf CheckBox1.Value = True And CheckBox2.Value = False And CheckBox3.Value = False Then
Selection.AutoFilter Field:=1, Criteria1:=Label1.Caption
ElseIf CheckBox2.Value = True And CheckBox1.Value = False And CheckBox3.Value = False Then
Selection.AutoFilter Field:=1, Criteria1:=Label2.Caption
ElseIf CheckBox1.Value = False And CheckBox2.Value = False And CheckBox3.Value = True Then
Selection.AutoFilter Field:=1, Criteria1:=Label3.Caption
End If
End If
End Sub
 
Geri
Üst