I have truly been stuck on this Do Until Loop and would appreciate some help on it. I want the loop to stop running once it reaches the string "The End" in column "B".
Sub DoUntil()
Dim sTestFile, sNewFile
Dim p As Integer
Application.ScreenUpdating = False
sTestFile = ActiveWorkbook.Name
Workbooks.Add
sNewFile = ActiveWorkbook.Name
Range("A1") = "Test"
Range("B1") = "YGTM"
Range("A2").Select
Windows(sTestFile).Activate
For i = 1 To Sheets.Count
Sheets(i).Select
Range("B1").Select
Do Until (Range("B" & ActiveCell.Row - 1) = "The End")
If Range("C" & ActiveCell.Row) <> "" Then
Range("C" & ActiveCell.Row).Copy
Windows(sNewFile).Activate
Range(ActiveCell, ActiveCell.Offset(0, 1)).PasteSpecial xlPasteAll
End If
ActiveCell.Offset(1, 0).Select
Loop
Next i
ActiveWorkbook.SaveAs CurDir & "Please Work'"
Application.ScreenUpdating = True
End Sub