'Return' statements are not valid in the Immediate window

The Return statement performs branching and is not permitted in a debugging context.

Error ID: BC30147

To correct this error

  • Do not issue a Return statement in the Immediate window.

See Also

Reference

Immediate Window