Chapter 9. Handling Errors, Testing, and Debugging

This chapter gives you a break from writing code procedures as it explores what might go wrong with your Outlook VBA or VBScript code and how to fix it. Outlook includes many tools to assist you in tracking down such problems, especially in VBA.

For VBScript, your options are more limited. There is no script debugging support for Outlook 2007 running on Windows Vista, unless Visual Studio is also installed on the machine. Therefore, we will look at some alternatives, including testing custom form code in Outlook VBA.

Highlights of this chapter include discussions of the following:

  • What types of errors you are likely to encounter

  • What debugging techniques Outlook VBA supports

  • How to handle errors you ...

Get Microsoft Outlook 2007 Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.