- Katılım
- 15 Nisan 2008
- Mesajlar
- 303
- Excel Vers. ve Dili
- 2010
Kod:
On Error Resume Next
If TextBox1.Text = "" Then: TextBox2 = ""
If TextBox1.Text = "0" Then: TextBox2 = "Yok"
If TextBox1.Text = "1" Then: TextBox2 = "5"
If TextBox1.Text = "2" Then: TextBox2 = "10"
If TextBox1.Text = "3" Then: TextBox2 = "15"
If TextBox1.Text = "4" Then: TextBox2 = "20"
If TextBox1.Text = "5" Then: TextBox2 = "25"
If TextBox1.Text = "6" Then: TextBox2 = "30"
If TextBox1.Text = "7" Then: TextBox2 = "35"
If TextBox1.Text = "8" Then: TextBox2 = "40"
If TextBox1.Text = "9" Then: TextBox2 = "45"
If TextBox1.Text = "10" Then: TextBox2 = "50"
Arkadaşlar yukarıdaki tanımlamalarını yaptığım textboxlara göre textbox 1 de boş,0,1,2...10 değerleri haricinde bir değer yazıldığında hata mesajı veren bir kodlama nasıl yapabilirim, saygılar,
mesala textboxa 15 girdim,
0-10 arasında bir değer giriniz uyarısının çıkmasını istiyorum. yardmcı olmanız temennisiyle. saygılar.
