Edit

'On Error' statements are not valid within 'Using' statements

An On Error statement appears within a Using statement but is not valid in that context.

Error ID: BC36013

To correct this error

  • Use structured error handling, such as a Try…Catch block, in place of the On Error statement.

See also