I want to insert error handler part for my new program but I don't know how to insert err.numbers for my new part. And what are the err.numbers and descriptions I can insert for this?

My coding is.......
Code:
Public Function MessageShow(err As ErrObject)
    
    If [B]err.Number = -2147467259[/B] Then
        MsgBox "NO NETWORK CONNECTION"
    ElseIf [B]err.Number = 424[/B] Then
    MsgBox "A
...