sirkülasyon
Altın Üye
- Katılım
- 10 Temmuz 2012
- Mesajlar
- 2,543
- Excel Vers. ve Dili
- 2021 LTSC TR
Userformda TextBox (2,4,6,8,10) hangileri dolu ise dolu olan TextBox sayısını TextBox13' e nasıl aldırabilirim?
Saygılarımla
Saygılarımla
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
If OptionButton1 = True Then
Dim Toplam As Double
Say = 0
For X = 2 To 10 Step 1
If Say = 5 Then GoTo SoN
If Controls("TextBox" & X) <> "" Then
Toplam = Toplam + Controls("TextBox" & X).Value
Say = Say + 1
End If
Next
SoN: TextBox12 = Say
Onay = MsgBox("(KDV %8 Seçtiniz) Kaydetmek istiyor musunuz?", vbCritical + vbYesNo)
If Onay = vbNo Then Exit Sub
TextBox13.Value = Format((TextBox11 / 108) * 100, "#,##0.00")
End If
If OptionButton2 = True Then
Dim Topla As Double
Say = 0
For X = 2 To 10 Step 1
If Say = 5 Then GoTo SoN
If Controls("TextBox" & X) <> "" Then
Topla = Topla + Controls("TextBox" & X).Value
Say = Say + 1
End If
Next
SoN1: TextBox12 = Say
Onay = MsgBox("(KDV %18 Seçtiniz) Kaydetmek istiyor musunuz?", vbCritical + vbYesNo)
If Onay = vbNo Then Exit Sub
TextBox13.Value = Format((TextBox11 / 118) * 100, "#,##0.00")
End If
For i = 1 To 10
Controls("TextBox" & i) = Empty
Next
End Sub
TextBox13.Value = Format((TextBox11 / 118) * 100, "#,##0.00")TextBox13.Value = Format((TextBox11 / 108) * 100, "#,##0.00")