Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


The Error keyword either simulates or responds to a run-time error.

The Error keyword is used in these contexts:

Error Statement

On Error Statement

See Also

Visual Basic Language Keywords | Exception Handling

© 2015 Microsoft