• DİKKAT

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

TextBox boş ise ComboBox Gizlemek

vardar07

Destek Ekibi
Destek Ekibi
Katılım
19 Mart 2008
Mesajlar
2,154
Excel Vers. ve Dili
Office 2007 Enterprise
Türkçe
Arkadaşlar Dosya içinde açılan userformda Textbox2 boş ise combobox false değer yazılınca true olacak. Google amcada bulduğum kodları uyarlamaya çalıştım ancak olmadı. Yardımlar için şimdiden teşekkürler.
 

Ekli dosyalar

Son düzenleme:
Arkadaşlar textbox2 boş ise combobox görünmemesi için Kodda ne gibi değişiklik yapacağım. Bir ip ucu verirmisiniz.

Kod:
Private Sub TextBox1_Change()
    [b1] = TextBox1.Text
End Sub
Private Sub TextBox2_Change()
    [b2] = TextBox2.Text
End Sub
Private Sub ComboBox1_Change()
    [b3] = ComboBox1.Text
TextBox4 = Round(Worksheets("Sayfa1").Range("b7").Value, 2) & "-" & "TL"
TextBox5 = Round(Worksheets("Sayfa1").Range("b9").Value, 2) & "-" & "TL"
End Sub
Private Sub UserForm_Initialize()
TextBox1 = ""
TextBox2 = ""
ComboBox1.RowSource = "'Sayfa1'!g1:g10"
ComboBox1.ListIndex = 0
End Sub
Private Sub Cikis_Click()
Unload Me
End Sub
Private Sub Temizle_Click()
TextBox1 = "": [b1] = ""
TextBox2 = ""
ComboBox1 = ""
TextBox4 = ""
TextBox5 = ""
End Sub
 
Buyurun.:cool:
Kod:
Private Sub TextBox2_Change()
    [b2] = TextBox2.Text
if textbox1.value="" then
       combobox1.visible=false
       else       
       combobox1.visible=true
end if
End Sub
 
Geri
Üst