Listview Index out of bounds hatası

kemal turan

Altın Üye
Katılım
10 Haziran 2011
Mesajlar
1,676
Excel Vers. ve Dili
Excel 2010 32 bit
Altın Üyelik Bitiş Tarihi
06-10-2032
merhaba,
Ek dosyada listview Index out of bounds hatası verdi.gerekli açıklamayı yaptım.
Teşekkür ederim.
 

Ekli dosyalar

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,248
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
Hangi userformu çalıştırılacak?
Cari seç butonu yok userformlarda!
 

kemal turan

Altın Üye
Katılım
10 Haziran 2011
Mesajlar
1,676
Excel Vers. ve Dili
Excel 2010 32 bit
Altın Üyelik Bitiş Tarihi
06-10-2032
Sn.Orion merhaba
Sutunu genişlettiğim için userform butonu k sutununda
anasayfayı active ettiğimizde de userform açılıyor.
Cari no nun yanın da seç butonu ile cariyı seçiyoruz
teşekkür ederim
 
Son düzenleme:

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,248
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
Cari nu textboxına veri girince hata veriyordu.
Onu düzelttim.
Dosyanız ektedir.:cool:
Kod:
[B][COLOR="Red"]x = 1[/COLOR][/B]
For i = 1 To sat
    If TextBox1.Text = "" Then deg = UCase(Replace(Replace(sh.Cells(i, "G").Value, "ı", "I"), "i", "İ"))
    If UCase(Replace(Replace(sh.Cells(i, "G").Value, "ı", "I"), "i", "İ")) Like deg Then
        ListView2.ListItems.Add , , sh.Cells(i, "A").Value
        ListView2.ListItems(x).SubItems(1) = sh.Cells(i, "F").Value
        ListView2.ListItems(x).SubItems(2) = sh.Cells(i, "I").Value
        ListView2.ListItems(x).SubItems(3) = sh.Cells(i, "J").Value
        ListView2.ListItems(x).SubItems(4) = sh.Cells(i, "K").Value
        ListView2.ListItems(x).SubItems(5) = sh.Cells(i, "N").Value
        ListView2.ListItems(x).SubItems(6) = sh.Cells(i, "L").Value
        ListView2.ListItems(x).SubItems(7) = sh.Cells(i, "M").Value
        [B][COLOR="red"]x = x + 1[/COLOR][/B]
    End If
Next i
 

Ekli dosyalar

kemal turan

Altın Üye
Katılım
10 Haziran 2011
Mesajlar
1,676
Excel Vers. ve Dili
Excel 2010 32 bit
Altın Üyelik Bitiş Tarihi
06-10-2032
Sn.Evren bey,
Çok teşekkür ederim.
Selametle kalınız
 
Üst