S
sjg1314
I'd like to be able to set up an event handler for the On Error event.
I want to do this programmatically.
I know the event handler needs to be a function and that it looks
something like "=MyFunc()". But the On Error event supplies two
arguments, DataErr and Response, which I need to access.
So I wrote a function that starts like this:
Public Function errorHandler(DataErr As Integer, Response As Integer)
Using the Expression Builder, I select the function, click OK and the
On Error property gets:
=errorHandler([«DataErr»],[«Response»])
This doesn't work. Nor does "=errorHandler([DataErr],[Response])".I've
tried a number of other variants with no success, so I'm hoping someone
here knows the right way to do this, or knows that it can't be done.
Thanks.
I want to do this programmatically.
I know the event handler needs to be a function and that it looks
something like "=MyFunc()". But the On Error event supplies two
arguments, DataErr and Response, which I need to access.
So I wrote a function that starts like this:
Public Function errorHandler(DataErr As Integer, Response As Integer)
Using the Expression Builder, I select the function, click OK and the
On Error property gets:
=errorHandler([«DataErr»],[«Response»])
This doesn't work. Nor does "=errorHandler([DataErr],[Response])".I've
tried a number of other variants with no success, so I'm hoping someone
here knows the right way to do this, or knows that it can't be done.
Thanks.