Error trapping

S

Steve Wylie

How do you go about trapping errors in Word VBA? I looked for an ONERROR
command but could not find it.

I have a macro that only works in a table. When you play it, it is possible
the cursor will move outside the table in which case I get a standard VBA
error. I want to trap this so that the macro just stops running without
coming up with an error.

Steve Wylie
PS I wanted to post this to vba.general as well, but I am using Microsoft's
new NG interface on their support website and it does not permit cross
posting any more. That's progress for you - give Microsoft enough time and
they'll screw any good thing up...
 

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

Similar Threads

Error trapping 2
Error Trapping 7
placement of error traps 2
Trapping Error 3101 5
How to trap error 3047 4
OnError not trapping subsequent errors? 4
Trap SQL Server Error 4060 2
Error Trapping 1

Top