Sub TestRaiseError() On Error GoTo TestRaiseError_Err Dim sngResult As String Err.Raise 11 Exit SubTestRaiseError_Err: msgBox "Error #" & Err.number & ": " & Err.Description Exit SubEnd Sub