...say = say + 1
Set d = .FindNext(d)
Loop While Not d Is Nothing And d.Address <> FirstAddress
End If
End With
End If
If ListBox1.ListCount > 0 Then
ListBox1.ListIndex = 0
TextBox6.Text = ListBox1.ListCount & " Adet"
MsgBox ListBox1.ListCount & " Adet Bulundu"
Else
MsgBox "Hiç veri...
...Bunu PDF olarak nasıl revize edebiliriz.
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
For i = 0 To ListBox2.ListCount - 1
If ListBox2.Selected(i) = True Then
j = j + 1
End If
Next i
If j = 0 Then MsgBox "Seçim Yapmadınız": Exit Sub
'On Error Resume Next
Dim appword...
...derdimi anlatmaya çalıştım.
Private Sub ListBox2_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim i As Integer
For i = 0 To ListBox2.ListCount - 1
If ListBox2.Selected(i) = True Then
Sheets("Satışdetay").Select
Sheets("Satışdetay").Range("A" & ListBox2.ListIndex + 2).Select
t =...
...= 1
If DateDiff("h", Sheets("Sayfa1").Range("H" & i), Sheets("Sayfa1").Range("H" & i)) > 7 Then
For i = 0 To ListBox1.ListCount - 1
If ListBox1.List(i) = "(COLOR="Red"]) Hasan (/COLOR))" Then
ListBox1.Selected(i) = True
End If
Next i
End If
End Sub
Teşekkürler Muzaffer Ali bey .
Listbox'a verileri alırken İmleç aktif satırın A sütununda. Listbox'a almadı. Örnek dosyayı ekledim.
Önce 4 adet combobox dan veriler seçilecek. Seöildikten sonra imleç hangi kişi seçili ise o kişinin A sütunundaki hücreye konumlanıyor.
o işlemden sonra...
...ListBox1.ColumnCount = 3
For Bak = 14 To Cells(1, Columns.Count).End(xlToLeft).Column Step 3
ListBox1.AddItem Cells(1, Bak)
ListBox1.List(ListBox1.ListCount - 1, 1) = Cells(1, Bak + 1)
ListBox1.List(ListBox1.ListCount - 1, 2) = Cells(1, Bak + 2)
Next
End Sub
Veysel Emre bey Yukarıdaki kodlar güzel çalışıyor ancak ben tümünü göstertmek için checkbox ekledim ve ona "Tümü" yazdım onu nasıl bu formüle uygulayabiliriz tümü dediğimde diğer checkboxlardaki işaretlerin kalkması gerekiyor
...listele()
With ListBox1
.List = lst
If CheckBox1.Value Or CheckBox2.Value Or CheckBox3.Value Then
For i = .ListCount - 1 To 0 Step -1
If Not ((CheckBox1.Value And .List(i, 7) = CheckBox1.Caption) Or _
(CheckBox2.Value And...
...= "YeniSayfa"
atla1:
'If Err.Number = 1004 Then MsgBox "Bilgi : " & cvlf & "Sayfa zaten mevcut. ", vbInformation, ""
For i = 0 To ListBox5.ListCount - 1
For a = 0 To ListBox5.ColumnCount - 1
With Sheets("YeniSayfa")
.Cells(i + 2, a + 1).Value = ListBox5.List(i, a)
End With
Next a, i
i =...
...= "YeniSayfa"
If Err.Number = 1004 Then MsgBox "Bilgi : " & cvlf & "Sayfa zaten mevcut. ", vbInformation, ""
For i = 0 To ListBox5.ListCount - 1
For a = 0 To ListBox5.ColumnCount - 1
With Sheets("YeniSayfa")
.Cells(i + 2, a + 1).Value = ListBox5.List(i, a)
End...
Selamlar
Arkadaşlar Listbox boş ise işlem yapmasın istiyorum.
aşağıdaki 3 seçeneği de denedim olmadı.
If Listbox1.ListCount = 0 Then Exit Sub
If Listbox1.ListCount < 0 Then Exit Sub
If Listbox1.ListCount = -1 Then Exit Sub
Denemeden yazıyorum. byfikanın gösterdiği kodda şu satırı kodların en altına taşımanız daha mantıklı olacak.
For i = 0 To Me.ListBox1.ListCount - 1
If ListBox1.Selected(i) = True Then
Sayfa1.Range("A" & Me.ListBox1.ListIndex + 4 & ":S" & Me.ListBox1.ListIndex + 4).Delete Shift:=xlUp...
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.