DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub UserForm_Initialize()
With ListView1
.View = lvwReport
.Gridlines = True
.FullRowSelect = True
For i = 4 To 7
.ColumnHeaders.Add , , Cells(1, i), 81
Next i
For i = 2 To 7
y = y + 1
.ListItems.Add , , Cells(i, 4)
.ListItems(y).SubItems(1) = Cells(i, 5)
.ListItems(y).SubItems(2) = Cells(i, 6)
.ListItems(y).SubItems(3) = Cells(i, 7)
.ListItems(y).ForeColor = RGB(255, 0, 0)
.ListItems(y).ListSubItems.Item(1).ForeColor = RGB(255, 0, 0)
.ListItems(y).ListSubItems.Item(2).ForeColor = RGB(255, 0, 0)
Next i
End With
End Sub
Sayın noxious, Listbox da böyle bir özellik yok.
Private Sub UserForm_Initialize()
Set Sh = Sheets("HAREKET")
son = Sh.Cells(65536, 1).End(xlUp).Row
yeni = True
With bul.ListView1
.ListItems.Clear
.View = lvwReport
.Gridlines = True
.FullRowSelect = True
For i = 1 To 6
.ColumnHeaders.Add , , Cells(1, i), 81
Next i
For i = 2 To son
y = y + 1
.ListItems.Add , , Cells(i, 1)
.ListItems(y).SubItems(1) = Cells(i, 2)
.ListItems(y).SubItems(2) = Cells(i, 3)
.ListItems(y).SubItems(3) = Cells(i, 4)
.ListItems(y).SubItems(4) = Cells(i, 5)
.ListItems(y).SubItems(5) = Cells(i, 6)
.ListItems(y).ListSubItems.Item(3).ForeColor = RGB(255, 0, 0)
.ListItems(y).ListSubItems.Item(4).ForeColor = RGB(255, 0, 0)
.ListItems(y).ListSubItems.Item(5).ForeColor = RGB(255, 0, 0)
Next i
End With
'ListeGuncelle
End Sub