Invalid 'exit' statement

You used an Exit statement inside one of the following program control constructs:

You can legally use an Exit statement to leave these structures only:

To correct this error

  • You may have improperly used Exit If, Exit With, or Exit Select.

  • Do not use Exit with If, With, or Select statements.

See Also