Merhaba arkadaşlar. user formumda kullandığım listbox7 nin içindeki satırları kesim1 sayfasında aratan ve bulduğundada bulunduğu satırı komple silen bir kod yazmaya çalıştım ama ?????? koyduğum satırda hata alıyorum. yardımcı olabilecek varsa sevinirim..
Kod:
Str = ListBox7.ListCount
For sbl = 0 To Str - 1
a0 = ListBox7.List(sbl, 0)
a1 = ListBox7.List(sbl, 1)
a2 = ListBox7.List(sbl, 2)
a3 = ListBox7.List(sbl, 3)
a4 = ListBox7.List(sbl, 4)
a5 = ListBox7.List(sbl, 5)
For hsy = 6 To Sheets("kesim1").Range("H1048575").End(xlUp).Row
b0 = Sheets("kesim1").Range("H" & hsy).Value
b1 = Sheets("kesim1").Range("I" & hsy).Value
b2 = Sheets("kesim1").Range("J" & hsy).Value
b3 = Sheets("kesim1").Range("K" & hsy).Value
b4 = Sheets("kesim1").Range("L" & hsy).Value
b5 = Sheets("kesim1").Range("M" & hsy).Value
If a0 = b0 And a1 = b1 And a2 = b2 And a3 = b3 And a4 = b4 And a5 = b5 Then
????????????????Sheets("kesim1").range(hsy:hsy).select
Selection.Delete Shift:=lUp
End If
Next hsy
Next sbl
