
Tip: If you are using a series of UserForms, do not place any
code after you call the Show method of the next UserForm. Your
program’s execution will always resolve back through the call stack
and could produce unexpected results.
Run-Time Errors
You cannot avoid run-time errors; however, you can plan for
them. Planning for run-time errors involves developing an
error handler. Word 2007 includes a VBA Error Handler
add-in that makes working with your error handler easier.
Although we’ll briefly discuss this add-in toward the end of
the chapter, we’ll assume you are working in the normal
Office environment and discuss how you can implement error
handling ...