Error Statement Example

This example uses the Error statement to simulate error number 11.

On Error Resume Next    ' Defer error handling.
Error 11    ' Simulate the "Division by zero" error.