• DİKKAT

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

Userform Listbox' ta seçim olup olmadığı hk

tamer42

Destek Ekibi
Destek Ekibi
Katılım
11 Mart 2005
Mesajlar
3,202
Excel Vers. ve Dili
Office 2013 İngilizce
Merhaba,
Userform aktif iken ListBox1' da;

herhangi bir seçim olduğında CommandButton1' aktif,
herhangi bir seçim olmadığında CommandButton1' pasif,


olması nasıl sağlanabilir?

Teşekkürler,

iyi Çalışmalar.
 
Commandbutton'un Enabled özelliğini False olarak ayarladıktan sonra

Listbox1'in change koduna

Commandbutton1.Enabled = True

satırını ekleyebilirsiniz.
 
Kod:
Private Sub ListBox1_Change()
    If ListBox1.ListIndex = -1 Then CommandButton1.Enabled = False
End Sub

Private Sub ListBox1_Click()
    CommandButton1.Enabled = True
End Sub

.
 
Kod:
Private Sub ListBox1_Change()
    If ListBox1.ListIndex = -1 Then CommandButton1.Enabled = False
End Sub

Private Sub ListBox1_Click()
    CommandButton1.Enabled = True
End Sub

.
Yusuf ve Haluk hocam çok teşekkürler...
 
Geri
Üst