Back to lesson
1. What three things are generated when an error is triggered in a piece of code?
An error code, an error number, and a description
An error count, an error number, and a description
An error message, an error list, and an error count
2. What is the correct code for testing if you have triggered an error?
If Err.Number <= 0 Then
If Err.Number < 0 Then
If Err.Number <> 0 Then
3. If you have suppressed errors using On Error Resume Next and want to test if an error is raised, where should you place the On Error GoTo0 line to resume normal error handling?
Immediately after the line that may cause the error
Immediately after testing to see if the Err.Number <> 0
Before the End Sub line
Back to the top
© 2017 GoSkills Ltd.
Skills for career advancement