bu arada
Do While Not rs.EOF
ListBox1.AddItem rs.Fields("StokAdı").Value
ListBox1.List(ListBox1.ListCount - 1, 1) = rs.Fields("Tarih").Value
ListBox1.List(ListBox1.ListCount - 1, 2) = rs.Fields("Fiyatı").Value
ListBox1.List(ListBox1.ListCount - 1, 3) =...
...MsgBox "FİRMA İSMİ GİRİNİZ": Exit Sub
Set s1 = Sheets("FİRMA MAİL LİSTESİ")
x = s1.Cells(Rows.Count, "B").End(3).Row
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) = True Then
Set R = s1.Range("B1:B" & x).Find(Trim(ListBox1.List(i, 1)), , xlValues, xlPart, , , False)
If Not R Is...
..."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...
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.