Korhan Bey ellerinize sağlık çok teşekkür ederim. Fakat birşey daha sorsam yanlış olur mu? Listbox ın otomatik güncellenmesi nasıl yapılır? Misal Listbox2 ye veri geldiğinde listbox2 deki kodlar aktif hale gelmesi nasıl olur?
...For Each isim In Alan
If UCase(LCase(isim)) Like UCase(LCase(TextBox1)) & "*" Then
liste = ListBox3.ListCount
ListBox3.AddItem
ListBox3.List(liste, 0) = isim 'Sutun B
ListBox3.List(liste, 1) = isim.Offset(0, 1)...
...For i = 10 To 100 Step 5
If ThisWorkbook.Sheets("Sayfa1").Cells(i, "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
örnek dosyada ekledim.
..."dd.mm.yyyy")
Else
rowData(i) = CStr(rs.Fields(i).Value)
End If
Next i
Me.lstKayıtlar.AddItem rowData(0)
For i = 1 To 15
Me.lstKayıtlar.List(Me.lstKayıtlar.ListCount - 1, i) = rowData(i)
Next i
rs.MoveNext
Loop
' Temizlik
rs.Close: cnn.Close
Set rs = Nothing: Set cnn = Nothing
End Sub
...Set sf = Sheets("Sayfa1")
ListBox1.RowSource = ""
ListBox1.Clear
For i = 1 To Range("a65536").End(3).Row
If sf.Range("A" & i) Like TextBox6.Value & "*" Then 'A sütununda arama yapar.
ListBox1.AddItem
ListBox1.List(ListBox1.ListCount - 1, 0) = sf.Range("A" & i)
End If
Next i
End Sub
merhaba
merhaba denedim ustad şöyle ara kısmında j alanına kadar getiriyor toplam sutun 14 fakat 10 sutun geliyor aramada ayrıca bi hata veriyor aramada (hata could the set the list property.Invaled property value)
data kısmındaki ilk alanı a: sutunu aktarıyor buna gerek yok sıra no olduğu...
...= 11
listonay.ColumnWidths = "27;50;60;60;240;60;60;120;120;220;60"
listonay.RowSource = "TUTARSIZLIK!A2:K240" '
If listonay.ListCount = 0 Then Exit Sub
For i = 0 To listonay.ListCount = -1
If i Mod 2 = 0 Then
listonay.Selected(i) = True
End If
Next
listonay.Enabled = False
End Sub
Merhaba...
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
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.