DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub EnSonHucre()
Dim Kolon As Long
Dim SonSatir As Long
Set sehir = Worksheets("Sayfa1").[1:1].Find("Ankara", , xlValues, xlWhole)
Kolon = sehir.Column
SonSatir = Cells(Rows.Count, Kolon).End(3).Row
MsgBox "En son dolu satır no: " & SonSatir & vbLf & "En son dolu hücre adresi: " & Cells(SonSatir, Kolon).Address
End Sub
Set sehir = Worksheets("Sayfa1").[1:1].Find(ComboBox1.Value, , xlValues, xlWhole)
ListBox1.RowSource = "Sayfa1!A3:E" & Worksheets("Sayfa1").Cells(Rows.Count, sehir.Column).End(3).Row
Private Sub ComboBox1_Change()
Dim Kolon As Long
Dim Adres As String
Dim SonSatir As Long
Kolon = Worksheets("Sayfa1").[1:1].Find(ComboBox1.Value, , xlValues, xlWhole).Column
SonSatir = Worksheets("Sayfa1").Cells(Rows.Count, Kolon).End(3).Row
Adres = Cells(2, Kolon).Address
Adres = Adres & ":" & Cells(SonSatir, Kolon + 4).Address
ListBox1.RowSource = "Sayfa1!" & Adres
End Sub