Sankar Balasubramanyan’s answer is very close, but has several problems. This is how I do it. Do it until it is empty, but Exit Do if the cropped value is an empty string.
Sub SampleEnding()
Dim ws As Worksheet: Set ws = ActiveSheet
Dim RowNum As Long: RowNum = 1
Dim ColNum As Long: ColNum = 3
Dim Name As String
Do While Not IsEmpty(ws.Cells(RowNum, 1))
If Trim(ws.Cells(RowNum, 1).Value) <> "" Then
Name = ws.Cells(RowNum, ColNum)
MsgBox Name
Else
Exit Do
End If
RowNum = RowNum + 1
Loop
End Sub
RowNum , , Excel .
, . /.