T
T. Alksndr Rstrpo Prado
Hi,
I got this code on a Module:
Sub FncError(TxtName As String)
On Error GoTo Err_FnceRRor
Beep
MsgBox Err.Number & " " & Err.Description & Chr
(13) & TxtName, vbCritical, "Error"
Exit Sub
Err_FnceRRor:
Beep
MsgBox Err.Number & " " & Err.Description, vbCritical
End Sub
when I used on a function but it doesn't work, when the
error occurs, the msgbox xhow error 0, and the error
number it's other.
What's wrong?
thanks for the help.
Be good
the force be with you
I got this code on a Module:
Sub FncError(TxtName As String)
On Error GoTo Err_FnceRRor
Beep
MsgBox Err.Number & " " & Err.Description & Chr
(13) & TxtName, vbCritical, "Error"
Exit Sub
Err_FnceRRor:
Beep
MsgBox Err.Number & " " & Err.Description, vbCritical
End Sub
when I used on a function but it doesn't work, when the
error occurs, the msgbox xhow error 0, and the error
number it's other.
What's wrong?
thanks for the help.
Be good
the force be with you