'On Error' statements are not valid in the Immediate window

On Error statements can only be used in source code.

Error ID: BC30720

To correct this error

  • Remove On Error statements from debugging code.

See Also

Other Resources

Debugging in Visual Studio