Public Function SearchLastRow(SearchSheet As String, _
SearchColumn As Long) As Long
Dim lngIndex As Long
Dim lngLast As Long
' With...
With ThisWorkbook.Worksheets(SearchSheet)
' Letzte Zeile...
lngLast = .Cells(.Rows.Count, 1).End(xlUp).Row
' Prüfen...
If lngLast > 1 Then
' Rückwärts suchen...
For lngIndex = lngLast - 1 To 1 Step -1
If Len(.Cells(lngIndex, SearchColumn).Value) > 0 Then
lngLast = lngIndex
Exit For
End If
Next lngIndex
End If
End With
' Ergebnis...
SearchLastRow = lngLast
End Function