I've written the following function to search a worksheet for the last available blank row.
Function findlastLog_Row() As Integer
Dim i As Integer
i = 1 'start at row 1
Do Until Sheets("Log").Cells(i, 1) = ""
i = i + 1
Loop
findlastLog_Row = i
End Function
Any ideas why its looping over and over. It seems to start all over on the second to last line findlastLog_Row = i
. This last line is to return the value of i
. Am I oversimplifying this?