• DİKKAT

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

CheckBox sorunu

Katılım
23 Temmuz 2004
Mesajlar
59
Excel Vers. ve Dili
Excel 2003 - ing
Selam,

Aşagıdaki kod ile userform'daki TextBox'ın gizlenmesini veya aktif hale gelmesini saglamaya çalışıyorum ama başaramadım.

Eğer CheckBox dolu ise TextBox'ı nasıl gızleyebilirim

Kod:
If CheckBox1.Checked = True Then
        TextBox1.Hide = True
    ElseIf CheckBox1.Checked = False Then
            TextBox1.Hide = False
    End If

saygilar.
 
TextBox1.Visible= True

Hide yerine Visible olarak deneyiniz.

If CheckBox1.Checked = True Then
TextBox1.Visible = True
Else
TextBox1.Visible = False
End If
 
Kısaca aşağıdaki gibide kullanabilirsiniz.

Kod:
TextBox1.visible =checkbox1
 
Estağfurullah Recep bey. Bir bilgi daha vereyim. Yukarıda verdiğim çözümde checkbox işaretli iken textbox görünür, eğer tam tersi istenirse bu durumda "not" fonksiyonunu kullanmak yeterlidir.

Kod:
TextBox1.Visible = Not(CheckBox1)
 
Geri
Üst