I have a problem, the Exit Sub command is not working for some reason. If the user says NO to the MsgBox I want to stop the code, but the program just continues to execute.
I have use breakpoints and traced the code and found that the Exit Sub command is only working 50% of the time.
tempNumber = MsgBox("Try Again?", 292)
'If the user wants to try again
If tempNumber = 6 Then
' Continue
Else
' The user wants to exit
Exit Sub
End If
I have use breakpoints and traced the code and found that the Exit Sub command is only working 50% of the time.
tempNumber = MsgBox("Try Again?", 292)
'If the user wants to try again
If tempNumber = 6 Then
' Continue
Else
' The user wants to exit
Exit Sub
End If
Comment