'GoTo <labelname>' is not valid because '<labelname>' is inside a 'Try', 'Catch' or 'Finally' statement that does not contain this statement

You cannot branch into a Try...Catch...Finally block.

Error ID: BC30754

To correct this error

  • Restructure your code so that the label precedes the Try...Catch...Finally block.

See Also

Reference

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