Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 9. Handling Errors, Testing, and... > Testing and debugging in VBA

9.2. Testing and debugging in VBA

All code needs to be tested and run against real-world data. Often, your tests will turn up errors. Debugging is the process of tracking down errors— mainly logic and runtime errors—by following the sequence in which code statements execute and monitoring the resulting changes in the values of your variables. VBA includes several tools that allow you to set the location where you want to start debugging and follow the variable values. These include:

  • Breakpoints

  • The Immediate window

  • The Watch window and Quick Watch feature

  • The Locals window

  • The Call Stack


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial