Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


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

© 2016 Microsoft