Is there a way to find the last cell in a colum that contains a specific format?
Currently I use a for loop, below
LastRowNumber = Range("A:A").Find(What:="", after:=Range("A1"), searchdirection:=xlPrevious).Row
For i = 1 To 10000
If Cells(LastRowNumber - i, 1).NumberFormat = "[h]:mm:ss" Then
LastRowNumber = LastRowNumber - i
End If
Next i
This loop find the last cell in the column then search the cell above to see if its in the format of [h]:mm:ss
however this just loops through until it fails when i = LastRowNumber
is there a better way to solve this?