- Katılım
- 23 Şubat 2007
- Mesajlar
- 131
- Excel Vers. ve Dili
- excel2003
İyi Çalışmalar Arkadaşlar bir matematiksel işlem yaptırıyorum ama kodlar textbox'dan geliyor 9 adet textbox'ım var bunlara ister değer ver istersen verme işlemi yap dedirtcem ama hata veriyor sanırım textbox boş ise matematiksel işlem sonuç veremiyor.eğer textbox boş ise işlem sonunu sıfır çıkar dedirtmek istiyorum ama başaramadım yardımcı olurmusunuz.
For pl = 10 To 19
For v = 23 To 32
If S4.Cells(v, 3) = "0" Or S4.Cells(v, 3) = "" Then
S4.Cells(v, 4) = "%0"
If Not IsNumeric(UserForm1("TextBox" & pl).Value) Then
UserForm1("TextBox" & pl).SetFocus
UserForm1("TextBox" & pl) = "0"
Else
S4.Cells(v, 4).Value = "'% " & Int(100 / (UserForm1("TextBox" & pl).Value / S4.Cells(v, 3)))
End If
End If
Next
Next
For pl = 10 To 19
For v = 23 To 32
If S4.Cells(v, 3) = "0" Or S4.Cells(v, 3) = "" Then
S4.Cells(v, 4) = "%0"
If Not IsNumeric(UserForm1("TextBox" & pl).Value) Then
UserForm1("TextBox" & pl).SetFocus
UserForm1("TextBox" & pl) = "0"
Else
S4.Cells(v, 4).Value = "'% " & Int(100 / (UserForm1("TextBox" & pl).Value / S4.Cells(v, 3)))
End If
End If
Next
Next
