'GoTo <labelname>' is not valid because '<labelname>' is inside a 'With' statement that does not contain this statement

GoTo statements are restricted to jumps within the current block of code.

Error ID: BC30756

To correct this error

  • Restructure your code so that the GoTo statement and the label are both inside the With block.

See Also

Reference

GoTo Statement