'Exit' statements are not valid in the Immediate window

Exit statements can only be used in source code.

Error ID: BC30713

To correct this error

  • Remove Exit statements from the debugging code.

See Also

Reference

Exit Statement (Visual Basic)

End Statement

Other Resources

Debugging in Visual Studio