I have a msgbox in my code. I use F8 to check my code. When I get to the message box, it appears on the screen, I then click ok, but it doesn't move to the next line. If I will click F8 again it will start the function again.
What could be the reason?
After my code didn't work, I tried the simplest code (not mine, found on line):
Sub MsgBoxInformationIcon()
Dim result As Integer
result = MsgBox("Do you want to continue?", vbYesNo + vbQuestion)
If result = vbYes Then
Debug.Print "yes"
Else: Debug.Print "no"
End If
End Sub
The debugger gets to the line of result. message box pops up, I click any of the options, the message box disappears and the yellow line in the debugger disappears, no errors. If I click F8 again the sub will start again. n