Forum icinde bircok konuya baktim ama bulamadim. Saatlerdir excel sayfasindan listview e aldigim kolonlarin bazilarini listview icindeki hucrelerde saga dayamak istiyorum. Derdime ilac olur musunuz? kisa bir kod ornegi verebilirmisiniz? ornegin 8.9.10. kolonlari saga dayamak istiyorum.kodlarim su sekilde
son = s1.Cells(65536, 1).End(xlUp).Row
x = 0
With UserForm1.ListView2
.ListItems.Clear
For i = 2 To son
.ListItems.Add , , s1.Cells(i, 1)
x = x + 1
With .ListItems(x).ListSubItems
.Add , , Format(s1.Cells(i, 2), "#,##0")
.Add , , Format(s1.Cells(i, 3), "#,##0")
.Add , , Format(s1.Cells(i, 4), "#,##0")
.Add , , Format(s1.Cells(i, 5), "#,##0")
.Add , , Format(s1.Cells(i, 6), "#,##0")
.Add , , Format(s1.Cells(i, 7), "#,##0")
.Add , , Format(s1.Cells(i, 8), "#,##0")
.Add , , Format(s1.Cells(i, 9), "#,##0")
.Add , , Format(s1.Cells(i, 10), "#,##0")
.Add , , Format(s1.Cells(i, 11), "#,##0")
.Add , , Format(s1.Cells(i, 12), "#,##0")
.Add , , i
End With
Next i
End With
son = s1.Cells(65536, 1).End(xlUp).Row
x = 0
With UserForm1.ListView2
.ListItems.Clear
For i = 2 To son
.ListItems.Add , , s1.Cells(i, 1)
x = x + 1
With .ListItems(x).ListSubItems
.Add , , Format(s1.Cells(i, 2), "#,##0")
.Add , , Format(s1.Cells(i, 3), "#,##0")
.Add , , Format(s1.Cells(i, 4), "#,##0")
.Add , , Format(s1.Cells(i, 5), "#,##0")
.Add , , Format(s1.Cells(i, 6), "#,##0")
.Add , , Format(s1.Cells(i, 7), "#,##0")
.Add , , Format(s1.Cells(i, 8), "#,##0")
.Add , , Format(s1.Cells(i, 9), "#,##0")
.Add , , Format(s1.Cells(i, 10), "#,##0")
.Add , , Format(s1.Cells(i, 11), "#,##0")
.Add , , Format(s1.Cells(i, 12), "#,##0")
.Add , , i
End With
Next i
End With
