- Katılım
- 1 Mart 2005
- Mesajlar
- 22,248
- Excel Vers. ve Dili
-
Win7 Home Basic TR 64 Bit
Ofis-2010-TR 32 Bit
Mrb
Yukarıdaki kodlar ile 8.nci sutunda "Sezar" Olan satırları Listeliyorum.
Fakat Sezar Olmayan satırlar ListBox'ta boş görünüyor.
ListBox'ta Boş satırların görünmemesini istiyorum.
Teşekkür ederim.
İyi çalışmalar.
:hey:
Kod:
Private Sub UserForm_Initialize()
satirsay = [a65536].End(3).Row
MsgBox satirsay
ReDim MyArr(1 To satirsay - 2, 1 To 4)
Dim i As Long
ListBox1.ColumnCount = 4
For i = 3 To satirsay
if cells(i,8)="Sezar" then
MyArr(i - 2, 1) = Cells(i, 1)
MyArr(i - 2, 2) = Cells(i, 2)
MyArr(i - 2, 3) = Cells(i, 3)
MyArr(i - 2, 4) = Cells(i, 8)
end if
Next
ListBox1.List = MyArr
End Sub
Fakat Sezar Olmayan satırlar ListBox'ta boş görünüyor.
ListBox'ta Boş satırların görünmemesini istiyorum.
Teşekkür ederim.
İyi çalışmalar.
:hey: