Can anyone tell me why I would be getting a compile error: "Loop without do" for the following code.
Sub Burrito_log()
Dim j As Long
j = 1
Do
x = InputBox("How many burritos did you have today?")
Cells(j, 2) = x
Cells(j, 1) = Date
j = j + 1
ans = MsgBox("Burrito Log", vbYesNo, "Are you done inputting?")
If ans = vbYes Then
'Do nothing
Else
Loop
End If
End Sub
Loopdoesn't have abreakclause. Be aware that if you neverExityourDoyou will eat Burritos forever.Ifblock before you can close your loop.