• DİKKAT

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

TextBox Doluluk Kontrolü

  • Konbuyu başlatan Konbuyu başlatan nickella
  • Başlangıç tarihi Başlangıç tarihi
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Katılım
4 Mayıs 2015
Mesajlar
26
Excel Vers. ve Dili
Excel 2010 Türkçe
Arkadaşlar, yapmış olduğum projede 3 adet textbox'ın doluluk durumuna göre buton aktif ya da pasif olacak. 3 textbox'ın da dolu olması kesinlikle şart. eğer 3 'ü de dolu olursa button aktif olsun. 3 textbox dolduktan sonra eğer bir tanesinin içeriği silinirse tekrar pasif olsun istiyorum. yardımlarınızı bekliyorum.
 
Merhaba,

Biraz uzun yol oldu ama idare edin artık.


Kod:
Private Sub TextBox1_Change()

    If Not TextBox1.Value = "" And Not TextBox2.Value = "" And Not TextBox3.Value = "" Then
        CommandButton1.Enabled = True
    Else
        CommandButton1.Enabled = False
    End If
    
End Sub

Kod:
Private Sub TextBox2_Change()

    If Not TextBox1.Value = "" And Not TextBox2.Value = "" And Not TextBox3.Value = "" Then
        CommandButton1.Enabled = True
    Else
        CommandButton1.Enabled = False
    End If
    
End Sub
Kod:
Private Sub TextBox3_Change()

    If Not TextBox1.Value = "" And Not TextBox2.Value = "" And Not TextBox3.Value = "" Then
        CommandButton1.Enabled = True
    Else
        CommandButton1.Enabled = False
    End If
    
End Sub

Kod:
Private Sub UserForm_Initialize()
        CommandButton1.Enabled = False
End Sub
 
Merhaba,

Biraz uzun yol oldu ama idare edin artık.


Kod:
Private Sub TextBox1_Change()

    If Not TextBox1.Value = "" And Not TextBox2.Value = "" And Not TextBox3.Value = "" Then
        CommandButton1.Enabled = True
    Else
        CommandButton1.Enabled = False
    End If
    
End Sub

Kod:
Private Sub TextBox2_Change()

    If Not TextBox1.Value = "" And Not TextBox2.Value = "" And Not TextBox3.Value = "" Then
        CommandButton1.Enabled = True
    Else
        CommandButton1.Enabled = False
    End If
    
End Sub
Kod:
Private Sub TextBox3_Change()

    If Not TextBox1.Value = "" And Not TextBox2.Value = "" And Not TextBox3.Value = "" Then
        CommandButton1.Enabled = True
    Else
        CommandButton1.Enabled = False
    End If
    
End Sub

Kod:
Private Sub UserForm_Initialize()
        CommandButton1.Enabled = False
End Sub

Çok teşekkür ederim. Sorunsuz çalışıyor
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Geri
Üst