Cengizhantr06
Altın Üye
- Katılım
- 16 Mayıs 2020
- Mesajlar
- 327
- Excel Vers. ve Dili
- Office 365 Türkçe
- Altın Üyelik Bitiş Tarihi
- 18-05-2025
Kodum bu listview1 de G hücesi 10 dan küçük ise kırmızıya boyasın
Sub listegoster1()
Dim sh As Worksheet
Dim son As Long
Dim i As Long
Dim x As Byte
Set sh = Sheets("Stoklar")
son = sh.Cells(65536, 1).End(xlUp).Row
With anaform.ListView1
.ListItems.Clear
For i = 2 To son
.ListItems.Add , , sh.Cells(i, 1)
x = x + 1
With .ListItems(x).ListSubItems
.Add , , sh.Cells(i, 2)
.Add , , sh.Cells(i, 3)
.Add , , sh.Cells(i, 4)
.Add , , sh.Cells(i, 5)
.Add , , sh.Cells(i, 6)
.Add , , sh.Cells(i, 7)
.Add , , i
End With
Next i
End With
Set sh = Nothing
End Sub
Sub listegoster1()
Dim sh As Worksheet
Dim son As Long
Dim i As Long
Dim x As Byte
Set sh = Sheets("Stoklar")
son = sh.Cells(65536, 1).End(xlUp).Row
With anaform.ListView1
.ListItems.Clear
For i = 2 To son
.ListItems.Add , , sh.Cells(i, 1)
x = x + 1
With .ListItems(x).ListSubItems
.Add , , sh.Cells(i, 2)
.Add , , sh.Cells(i, 3)
.Add , , sh.Cells(i, 4)
.Add , , sh.Cells(i, 5)
.Add , , sh.Cells(i, 6)
.Add , , sh.Cells(i, 7)
.Add , , i
End With
Next i
End With
Set sh = Nothing
End Sub