15Trapping Program Errors

In Chapter 6, “Controlling Your VBA Code,” I showed you how to use If...Then and other control structures to add “intelligence” to your VBA programs. You’ll notice, however, that whenever people write about coding programs for decision-making and other “smart” things, they always put words such as “intelligence” and “smart” in quotation marks (as I’m doing now). Why? Well, the cynics in the crowd (and those who’ve suffered through a few too many BSODs—blue screens of death) would say it’s because using the words intelligence and program in the same sentence borders on the oxymoronic. However, the more common reason ...

Get Business Solutions VBA for the 2007 Microsoft Office System now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.