'Exit Try' can only appear inside a 'Try' statement

Exit Try can only appear within a Try block statement. Either you have a redundant Exit Try statement, or your Exit Try statement appears outside the bounds of its corresponding Try block.

Error ID: BC30393

To correct this error

  1. Locate and remove the unnecessary Exit Try statement.

  2. Move the Exit Trystatement to the appropriate place within your code.

See Also

Concepts

Structured Exception Handling Overview for Visual Basic

Reference

Try...Catch...Finally Statement (Visual Basic)