By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,863 Members | 853 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,863 IT Pros & Developers. It's quick & easy.

Errobject

P: n/a
Can anybody provide the code needed to pass the error object to a
function or subroutine.

TIA.
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
rkc

<bc*****@yahoo.co.uk> wrote in message
news:ea********************************@4ax.com...
Can anybody provide the code needed to pass the error object to a
function or subroutine.


You mean like:

Sub CreateError()
On Error GoTo errHandler

Dim i As Long
Dim j As Long
i = 50

j = i \ 0

Exit Sub

errHandler:
Call ReadError(Err)
End Sub

Sub ReadError(e As ErrObject)
MsgBox e.Description, vbCritical, "Message from ReadError Sub routine."
End Sub

?
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.