error handling in outlook

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
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top