VBA输入框条件设置不正确 - 需要结束宏

Jim*_*ens 0 excel vba excel-vba userform

我是一个白痴,并设置一个输入框无休止地循环

    InputBoxx:
    Again = InputBox("Question?" & vbLf & "1) Answer 1" & vbLf& vbLf & "2) Answer 2" & vbLf & "3) Answer 3" & vbLf & vbLf & "Please Enter the number that corresponds to your selection")

If Again <> 1 Or Again <> 2 Or Again <> 3 Then MsgBox "Hey now, that wasn't one of the choices....", vbCritical: GoTo InputBoxx:
Run Code Online (Sandbox Code Playgroud)

有没有办法在不关闭Excel的情况下结束循环?我已按Escape,Cancel等.

小智 6

你必须按Ctrl + Break来中断运行.