24. Handling Errors
In This Chapter
What Happens When an Error Occurs?
Basic Error Handling with the On Error GoTo
Syntax
Errors While Developing Versus Errors Months Later
Errors are bound to happen. Even when you test and retest your code, after a report is put into daily production and used for hundreds of days, something unexpected will eventually happen. Your goal should be to try to head off obscure errors as you code. For this reason, you should always be thinking of what unexpected things could happen someday that could make your code not work.
What Happens When an Error Occurs?
When VBA ...
Get Excel 2016 VBA and Macros 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.