Try the following sub and make Top whatever value you want or make it a parameter of the call.
Public Sub ListErrors()
Dim intCtr As Integer
Const Top As Integer = 100
For intCtr = 1 To Top
If Left(Error(intCtr), 19) <> "Application-defined" Then
Debug.Print Error(intCtr)
End If
Next
End Sub
Steve King Growth follows a healthy professional curiosity
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.