I have a column that has a formula in each row field. The formula propagates data from another Excel spreasheet. If there is nothing in the row field, though, the row remains bl
Please follow below code.
Sub Test()
Dim i As Long, tempLast As Long, lastRow As Long
tempLast = Range("C" & Rows.Count).End(xlUp).Row
For i = 1 To tempLast
If Cells(i, 1).HasFormula Or Not Cells(i, 1).HasFormula Then
If Len(Cells(i, 1).Value) < 1 Then
lastRow = i
Exit For
End If
End If
Next
MsgBox lastRow
End Sub