error handling in outlook

  • Thread starter Thread starter David
  • Start date Start date
D

David

It seems the typical error handling code does not work in the forms. Here is
a skeleton function of what I would normally do in VB. What am I doing wrong
for VBA?

sub Test()
On Error Go To ProcessError
<code>
goto ProcessEnd:
ProcessError:
<more code>

ProcessEnd:
<clean up code>
end sub
 
Outlook forms use VBScript, which does not support such error processing.
You can use On Error Resume Next and test in appropriate places for If Err
<> 0
 
Back
Top