R
red6000
Hi I have the following error handling code, what I would like to do is add
into the msgbox, the line number of the code where it encountered the error.
Is this possible?
Thanks.
WRKITEM_ERROR:
If Err.Number = 429 Then
MsgBox "You do not appear to have outlook open. Please open and try
again" & Chr(13) & "(" & Err.Number & ") " & Err.Description, _
vbExclamation, _
"ERROR"
Else
MsgBox "(" & Err.Number & ") " & Err.Description, _
vbExclamation, _
"ERROR"
End If
Err.Clear
into the msgbox, the line number of the code where it encountered the error.
Is this possible?
Thanks.
WRKITEM_ERROR:
If Err.Number = 429 Then
MsgBox "You do not appear to have outlook open. Please open and try
again" & Chr(13) & "(" & Err.Number & ") " & Err.Description, _
vbExclamation, _
"ERROR"
Else
MsgBox "(" & Err.Number & ") " & Err.Description, _
vbExclamation, _
"ERROR"
End If
Err.Clear