..."f")
TextBox7.Text = Cells(ActiveCell.Row, "E")
TextBox2.Text = Cells(ActiveCell.Row, "C")
UserForm28.TextBox1.Text = Cells(ActiveCell.Row, "b")
UserForm28.Show
toplam = 0
For i = 1 To ListBox1.ListCount
toplam = toplam + Val(ListBox1.List(i - 1))
Next i
TextBox6 = toplam
End Sub
Böyle bir şey mi ?
Private Sub UserForm_Initialize()
For i = 1 To 5
ListBox1.AddItem i
Next
For j = 0 To ListBox1.ListCount - 1
If ListBox1.List(j) * 1 = [b2] Then
ListBox1.Selected(j) = True
End If
Next
End Sub
merhabalar A sütununu toplatacaksanız aşağıdaki gibi uygulayın.
For i = 1 To ListBox1.ListCount - 1
T = ListBox1.List(i - 0, 0) + T
Next i
TextBox6 = T
For i = 1 To ListBox1.ListCount - 1
T = ListBox1.List(i - 0, 1) + T
Next i
TextBox6 = T
benim toplatacağım listbox 7 kolonlu listboxdaki a1 hücresi bu kod ile 2. kolonu topluyor bir altını yazıyorum hata veriyor a1 leri nasıl toplatırım?
hocam merhaba
For i = 1 To ListBox1.ListCount - 1
T = ListBox1.List(i - 0, 1) + T
Next i
TextBox6 = T
benim toplatacağım hücre 7 kolonlu listboxdaki a1 hücresi bu kod ile 2. kolonu topluyor bir altını yazıyorum hata veriyor a1 leri nasıl toplatırım
...Dim i As Long
Dim toplam As Double
Dim sutunIndex As Integer
sutunIndex = 7
toplam = 0
For i = 0 To ListBox1.ListCount - 1
If IsNumeric(ListBox1.List(i, sutunIndex)) Then
toplam = toplam + CDbl(ListBox1.List(i, sutunIndex))
End If
Next i...
...en az bir ürün seçiniz.", vbExclamation
Exit Sub
End If
' Seçilen her bir ürün için işlem yap
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) Then
urunAdi = ListBox1.List(i) '
urunSatir = CLng(ListBox1.List(i, 1)) '...
..."C").Value <> "" Then
ListBox1.AddItem ThisWorkbook.Sheets("Sayfa1").Cells(i, "c").Value
ListBox1.List(ListBox1.ListCount - 1, 1) = i
ListBox1.ListStyle = 1
ListBox1.MultiSelect = 1
End If
End If
Next i
End Sub
bu kod olayına ilave şöyle bir şey var kullandığım nasıl aktif edebilirim bu olaya acaba
h alanına x yazdığımda x yazılı olan hücreleri gizliyor istediğim gizli olanlar combobox a gelmesin nasıl yapabilirim bunu
hocam birde user formda ilave bitanede textbox3 var bunada combobox1 den seçilen...
..."B").Value <> "" Then
ComboBox1.AddItem ThisWorkbook.Sheets("Sayfa1").Cells(i, "B").Value
ComboBox1.List(ComboBox1.ListCount - 1, 1) = i
End If
Next i
End Sub
Private Sub CommandButton1_Click()
Dim urunAdi As String
Dim urunSatir As Long
If...
...If TextBox1 = "" Then
TextBox2 = ""
ListBox1.Clear
ListBox2.Clear
End If
TextBox2 = ListBox1.ListCount
TextBox3 = ListBox2.ListCount
Call Topla_Logo
Call Topla_Kademe
End Sub
Private Function Diz(ByVal Dizim As Variant, Stn1 As Integer, Stn2 As...
Sizlere daha iyi bir deneyim sunabilmek icin sitemizde çerez konumlandırmaktayız, web sitemizi kullanmaya devam ettiğinizde çerezler ile toplanan kişisel verileriniz Veri Politikamız / Bilgilendirmelerimizde belirtilen amaçlar ve yöntemlerle mevzuatına uygun olarak kullanılacaktır.