'End' statements are not valid in the Immediate window

The Stop and End statements suspend execution and are not permitted in a debugging context.

Error ID: BC30123

To correct this error

  • Do not issue a End or Stop statement in the Immediate window.

See Also

Reference

Immediate Window