- Katılım
- 20 Aralık 2006
- Mesajlar
- 939
- Excel Vers. ve Dili
- türkçe
arkadaşlar listboxı formu her açtığımda son dolu satırda görmek istiyorum nasıl yaparım
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub UserForm_Activate()
If ListBox1.ListCount > 0 Then ListBox1.ListIndex = ListBox1.ListCount - 1
End Sub
Private Sub UserForm_Initialize()
ListBox1.RowSource = "A1:A65536"
If ListBox1.ListCount > 0 Then
For X = ListBox1.ListCount - 1 To 0 Step -1
If Not IsEmpty(ListBox1.List(X, 0)) Then
ListBox1.ListIndex = X
Exit For
End If
Next
End If
End Sub
Listbox'ta boş satırda mı oluyor ki son dolu satıra gitsin. Listbox'a rowsource la verileri alırken son dolu satırdan ötesini almayın. Yanibu kodları girince son satıra lıyor ben son dolu satıra almak istiyorum
ListBox1.RowSource = "a1:a100"
ListBox1.RowSource = "a1:a" & [a65536].End(3).Row