• DİKKAT

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

Soru Buton ile Listbox'da Seçim Yapma ve Seçimi Kaldırma

likaba

Altın Üye
Katılım
3 Mayıs 2016
Mesajlar
158
Excel Vers. ve Dili
2016 Türkçe
Merhabalar,

"Tümünü Seç" ve "Tümünü Kaldır" düğmelerini kullanarak Listbox2'de işlem yapmak istiyorum. Bunu nasıl gerçekleştirebilirim?212337
 
Seçili yapar.

Kod:
Private Sub OptionButton1_Click()
    If OptionButton1 = True Then
        For i = 0 To ListBox2.ListCount - 1
            ListBox2.Selected(i) = True
        Next i
    End If
End Sub


Seçimi Kaldırır.

Kod:
Private Sub OptionButton2_Click()
    If OptionButton2 = True Then
        For i = 0 To ListBox2.ListCount - 1
            ListBox2.Selected(i) = False
        Next i
    End If
End Sub
 
Seçili yapar.

Kod:
Private Sub OptionButton1_Click()
    If OptionButton1 = True Then
        For i = 0 To ListBox2.ListCount - 1
            ListBox2.Selected(i) = True
        Next i
    End If
End Sub


Seçimi Kaldırır.

Kod:
Private Sub OptionButton2_Click()
    If OptionButton2 = True Then
        For i = 0 To ListBox2.ListCount - 1
            ListBox2.Selected(i) = False
        Next i
    End If
End Sub

Çok teşekkür ederim Ziynettin Bey
 
Geri
Üst